Example #1
0
        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)
 {
 }
Example #3
0
 public SupplierRepository(AcquisitionPlusDbContext context) : base(context)
 {
 }
 public PurchaseOrderRepository(AcquisitionPlusDbContext context) : base(context)
 {
 }
Example #5
0
 public UnitOfMeasurementRepository(AcquisitionPlusDbContext context) : base(context)
 {
 }
Example #6
0
 public EmployeeRepository(AcquisitionPlusDbContext context) : base(context)
 {
 }
 public BaseRepository(AcquisitionPlusDbContext context)
 {
     this.context = context;
 }
 public ProductRepository(AcquisitionPlusDbContext context) : base(context)
 {
 }