Ejemplo n.º 1
0
 public UnitOfWork()
 {
     _context   = new AppViralityTestDBEntities1();
     Categories = new CategoryRepository(_context);
     Products   = new ProductRepository(_context);
     Users      = new UserRepository(_context);
 }
 public ProductRepository(AppViralityTestDBEntities1 context) : base(context)
 {
 }
 public CategoryRepository(AppViralityTestDBEntities1 context) : base(context)
 {
 }
 public UserRepository(AppViralityTestDBEntities1 context) : base(context)
 {
 }