Пример #1
0
 public DbSeeder(MyAppContext context)
 {
     _context = context;
 }
Пример #2
0
 public DbSeeder(MyAppContext context, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager)
 {
     _context     = context;
     _roleManager = roleManager;
     _userManager = userManager;
 }