protected override void OnModelCreating(ModelBuilder modelBuilder) { SetupHole.Setup(modelBuilder.Entity <HoleInstance>()); SetupAttempt.Setup(modelBuilder.Entity <Attempt>()); SetupUser.Setup(modelBuilder.Entity <User>()); //// SetupGame.Setup(modelBuilder.Entity<Game>()); }
public DbSeeder(ApplicationDbContext db, UserManager <ApplicationUser> userManager, IOptions <SetupUser> user) { _db = db; _userManager = userManager; _user = user.Value; }