Hi,
Using the LLBLGen 3.1, adapter.
My application has an "employee" entity with child entities and grand-child entities (hierarchical ancestors).
In the UI, each time a user goes into edit mode for an "employee" entity, the entity and all ancestor entites are fetched and stored in session (ASP.NET application). Any changes to the entity and ancestors (e.g. adding/deleting/changing entity or ancestor entities) are made to this hierarchy of entities.
Then upon a "save" the existing database entity (and all ancestors) are deleted, and the new employee entity (and all ancestors) are added.
This works fine, but it doesn't allow effective audting (because we're rewriting everything each time...when a subset of the ancestor entities may have really changed).
So what I think I need is a way to "diff" the "editing" entity (and ancestors) to the one that's currently held in the database. Suggestion on the best approach for this?
Thanks!