Can you please outline how we might turn on Change history Logging for a root entity and its child collections ?
For example, if I have a root entity named Order, and that Order Entity has a child collection of OrderItems, can you offer a suugestion has to how we might track changes to both the OrderItems and Order is the same change log?
This is urgent for us, so would really appreciate some pointers on how to achieve this in ZERO.
Does your app change
OrderItemtogether ? If you are doing it like that, both change records must be grouped under same EntityChangeSets. You can see it in AbpEntityChangeSets table in the database.
The user might make a change to an OrderItem or the OrderDetails (Parent) or both. We want to allow the user to view the history on the OrderDetails where they will be able to see if a OrderItem has also been changed.
In summayr, we want to track any change to an entity and any related enities by looking at the root... OrderDetails.
Hope this is achieveable?
This is not possible by defualt. However, if you keep a list of entities and their relations in somewhere (maybe it is possible to find relations using code but I couldn't find any way at the moment), and filter
EntityTypeFullNamefield by main Entity and related entities.