Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public ReferenceDataManager(DataContext context)
 {
     this.context = context;
 }
Exemplo n.º 3
0
 public SalesAnalytics(DataContext context)
 {
     this.context = context;
 }
Exemplo n.º 4
0
 public WarehouseManager(DataContext context)
 {
     this.context = context;
 }