Пример #1
0
 public UnitOfWork(DatadbContext context)
 {
     _context = context;
     Supplier = new SupplierRepository(_context);
     Product  = new ProductRepository(_context);
     Category = new CategoryRepository(_context);
     Stock    = new StockRepository(_context);
 }
Пример #2
0
 public CategoryRepository(DatadbContext context) : base(context)
 {
 }
Пример #3
0
 public SupplierRepository(DatadbContext context) : base(context)
 {
 }
Пример #4
0
 public StockRepository(DatadbContext context) : base(context)
 {
 }
Пример #5
0
 public ProductRepository(DatadbContext context) : base(context)
 {
 }