Пример #1
0
 public CompanyWarehouse(DataContext context)
 {
     available = context.WarehouseOperations
         .Where(x => x.Distributor == null)
         .GroupBy(x => x.Product)
         .ToDictionary(
             operations => operations.Key,
             operations => operations.Sum(
                 operation => operation.Type == WarehouseOperationType.Produced
                                  ? operation.Quantity
                                  : -operation.Quantity));
 }
Пример #2
0
 public ReferenceDataManager(DataContext context)
 {
     this.context = context;
 }
Пример #3
0
 public SalesAnalytics(DataContext context)
 {
     this.context = context;
 }
Пример #4
0
 public WarehouseManager(DataContext context)
 {
     this.context = context;
 }