Пример #1
0
 public UnitOfWork(GSBrevetDbContext context)
 {
     _context  = context;
     Users     = new UserRepository(_context);
     Roles     = new RoleRepository(_context);
     Companies = new CompanyRepository(_context);
     Patents   = new PatentRepository(_context);
     Molecules = new MoleculeRepository(_context);
     Contracts = new ContractRepository(_context);
     Utilities = new UtilityRepository(_context);
 }
Пример #2
0
 public MoleculeRepository(GSBrevetDbContext context) : base(context)
 {
 }
Пример #3
0
 public UserRepository(GSBrevetDbContext context) : base(context)
 {
 }
Пример #4
0
 public ContractRepository(GSBrevetDbContext context) : base(context)
 {
 }
Пример #5
0
 public UtilityRepository(GSBrevetDbContext context) : base(context)
 {
 }
Пример #6
0
 public PatentRepository(GSBrevetDbContext context) : base(context)
 {
 }
Пример #7
0
 public CompanyRepository(GSBrevetDbContext context) : base(context)
 {
 }