Exemplo n.º 1
0
 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>());
 }
Exemplo n.º 2
0
 public DbSeeder(ApplicationDbContext db, UserManager <ApplicationUser> userManager, IOptions <SetupUser> user)
 {
     _db          = db;
     _userManager = userManager;
     _user        = user.Value;
 }