Пример #1
0
        public UnitOfWork(SaleManagementContext context)
        {
            this._context             = context;
            this._produceService      = new ProduceService(context);
            this._produceGroupService = new ProduceGroupService(context);

            this._staffService      = new StaffService(context);
            this._staffGroupService = new StaffGroupService(context);

            this._customerService = new CustomerService(context);
            this._unitService     = new UnitService(context);
            this._supplierService = new SupplierService(context);
            this._stockService    = new StockService(context);

            this._receiptNoteService  = new ReceiptNoteService(context);
            this._deliveryNoteService = new DeliveryNoteService(context);
        }
Пример #2
0
 public ProduceService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #3
0
 public Service(SaleManagementContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <T>();
 }
Пример #4
0
 public StaffGroupService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #5
0
 public DeliveryNoteService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #6
0
 public StockService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #7
0
 public ReceiptNoteService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #8
0
 public SupplierService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #9
0
 public CustomerService(SaleManagementContext context)
     : base(context)
 {
 }
Пример #10
0
 public UnitService(SaleManagementContext context)
     : base(context)
 {
 }