The Situation: In order to avoid N+1 selects, LightSpeed provides the possibility to fetch object graphs in one roundtrip to the database via the "WithAggregate(...)" method. Therefore you need to annotate the relevant properties/association with an aggregate name.
The problem: Foreach different fetching situation you need to specify another (unique) "AggregateName" at each relevant property/association. That quickly leads to an explosion of AggregateNames at the properties. We have here up to 8(!) aggregate names for a single property.
A possible solution: Allow me to pass multiply aggregate names for the "WithAggregate(...)" function:
var result = uow.WithAggregate("CustomerMinInfo", "OrderFullInfo", "OrderLineFullInfo").Where(....).
Status: New
|