public RoleUnitOfWork(DrcCardContext context):base(context) { _context = context; SubdomainRepository = new SubdomainRepository(_context); RoleRepository = new RoleRepository(_context); AuthorizationRepository = new AuthorizationRepository(_context); AuthorizationRoleRepository = new AuthorizationRoleRepository(_context); SubdomainVersionRoleRepository=new SubdomainVersionRoleRepository(_context); SubdomainVersionRepository=new SubdomainVersionRepository(_context); }
public SubdomainUnitOfWork(DrcCardContext context) : base(context) { _context = context; SubdomainRepository = new SubdomainRepository(_context); DrcCardRepository = new DrcCardRepository(_context); SubdomainVersionRepository = new SubdomainVersionRepository(_context); SubdomainVersionReferenceRepository = new SubdomainVersionReferenceRepository(_context); SubdomainVersionRoleRepository = new SubdomainVersionRoleRepository(_context); RoleRepository = new RoleRepository(_context); }