Walaa wrote:
You can have a Count property inside the LineItem, that on Get calculates its value from the attached LineItemEntires, so whenever you add a LineItemEntry and access the Count property, it will show the updated value.
I'm thinking more of a place to actually set a value in the LineItem when a LineItemEntry is added or removed. So that if the LineItem is fetched separately from the collection, this value will be there. This is more of a general question (LineItem, LineItemEntry, and the count are just examples)