| 1234567891011121314151617181920 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq.Expressions;
 
- using InABox.Core;
 
- namespace Comal.Classes
 
- {
 
-     public class ProductComponentCost : CoreAggregate<Product, ProductPriceComponent, double>
 
-     {
 
-         public override Expression<Func<ProductPriceComponent, double>> Aggregate => x => x.NettCost;
 
-         public override Dictionary<Expression<Func<ProductPriceComponent, object>>, Expression<Func<Product, object>>> Links =>
 
-             new Dictionary<Expression<Func<ProductPriceComponent, object>>, Expression<Func<Product, object>>>()
 
-             {
 
-                 { ProductPriceComponent => ProductPriceComponent.Product.ID, Product => Product.ID }
 
-             };
 
-         public override AggregateCalculation Calculation => AggregateCalculation.Sum;
 
-     }
 
- }
 
 
  |