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