public UnitOfWork(DatadbContext context) { _context = context; Supplier = new SupplierRepository(_context); Product = new ProductRepository(_context); Category = new CategoryRepository(_context); Stock = new StockRepository(_context); }
public CategoryRepository(DatadbContext context) : base(context) { }
public SupplierRepository(DatadbContext context) : base(context) { }
public StockRepository(DatadbContext context) : base(context) { }
public ProductRepository(DatadbContext context) : base(context) { }