What is the best practice to implement the following:
- we have a classes Order and OrderItem as parent-child.
- Class OrderItem provides property Cost
- On the OrdersList form we have to see MaxCost column = max(cost) from Items collection
I found only one usefull solution here which won't break the DDD concpts: to add a usual property MaxCost to the class Order and to update it each time when items list updates.
Is there another way?