public BaseUnitOfWork(SkillsBaseContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } db = context; }
public GenericRepository(SkillsBaseContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } this.Context = context; this.DbSet = context.Set <TEntity>(); }
public IdentityUnitOfWork(RoleManager <IdentityRole> rm, UserManager <ApplicationUser> um, SkillsBaseContext context) : base(context) { if (rm == null) { throw new ArgumentNullException(nameof(rm)); } if (um == null) { throw new ArgumentNullException(nameof(um)); } roleManager = rm; userManager = um; }
public EmployeeUnitOfWork(SkillsBaseContext context) : base(context) { }
public DomainUnitOfWork(SkillsBaseContext context) : base(context) { }