예제 #1
0
        public BaseUnitOfWork(SkillsBaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            db = context;
        }
예제 #2
0
        public GenericRepository(SkillsBaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            this.Context = context;
            this.DbSet   = context.Set <TEntity>();
        }
예제 #3
0
        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;
        }
예제 #4
0
 public EmployeeUnitOfWork(SkillsBaseContext context) : base(context)
 {
 }
예제 #5
0
 public DomainUnitOfWork(SkillsBaseContext context) : base(context)
 {
 }