コード例 #1
0
 public DbSeeder(JobApplicationDbContext context,
                 UserManager <JobApplicationUser> userManager,
                 RoleManager <IdentityRole> roleManager,
                 ILogger <JobApplicationDbContext> logger)
 {
     _context     = context;
     _userManager = userManager;
     _roleManager = roleManager;
     _logger      = logger;
 }
 public static void UpdateDB(this JobApplicationDbContext context)
 {
     context.Database.Migrate();
 }