Example #1
0
 public DbSeeder(FirstAppContext context,
                 UserManager <ApplicationUser> userManager,
                 RoleManager <IdentityRole> roleManager)
 {
     _context     = context;
     _userManager = userManager;
     _roleManager = roleManager;
 }
Example #2
0
 public DbRepository(FirstAppContext context)
 {
     this.context = context;
     this.dbset   = this.context.Set <TEntity>();
 }