public UnitOfWork(AcquisitionPlusDbContext context) { _context = context; Department = new DepartmentRepository(_context); Employee = new EmployeeRepository(_context); Product = new ProductRepository(_context); PurchaseOrder = new PurchaseOrderRepository(_context); Supplier = new SupplierRepository(_context); UnitOfMeasurement = new UnitOfMeasurementRepository(_context); }
public DepartmentRepository(AcquisitionPlusDbContext context) : base(context) { }
public SupplierRepository(AcquisitionPlusDbContext context) : base(context) { }
public PurchaseOrderRepository(AcquisitionPlusDbContext context) : base(context) { }
public UnitOfMeasurementRepository(AcquisitionPlusDbContext context) : base(context) { }
public EmployeeRepository(AcquisitionPlusDbContext context) : base(context) { }
public BaseRepository(AcquisitionPlusDbContext context) { this.context = context; }
public ProductRepository(AcquisitionPlusDbContext context) : base(context) { }