Esempio n. 1
0
        public BaseUnitOfWork(SkillsBaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            db = context;
        }
Esempio n. 2
0
        public GenericRepository(SkillsBaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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