using Microsoft.EntityFrameworkCore; using SessionCompanion.Database.Tables; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SessionCompanion.Database { public class ApplicationDbContext : DbContext { public virtual DbSet Alignments { get; set; } public virtual DbSet Backgrounds { get; set; } public virtual DbSet Biographies { get; set; } public virtual DbSet Characters { get; set; } public virtual DbSet Classes { get; set; } public virtual DbSet Races { get; set; } public virtual DbSet Statistics { get; set; } public virtual DbSet Users { get; set; } public ApplicationDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity().HasData(SeedData.SeedUsers()); } } }