예제 #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)
 {
 }