Using Audit for recursive change tracking

Posts   
 
    
omborddata
User
Posts: 42
Joined: 18-Apr-2012
# Posted on: 03-May-2012 15:23:23   

Hi, I recently started using LLBLGen Pro for a new project where I need to do changetracking.

The big picture is I will have one central installation of the application and several subinstallations in different places. The different installations are not connected to each other. From time to time the subinstallations will connect to the central installation and transfer changed data to the central installation to syncronize the databases.

Because of this I need to track changes on some entities, store the changes to database and then send the changes when connected.

When I was poking around in LLBLGen I realized there is built in auditing and thought I might be able to use it.

I have a top object with 3 1:n related tables and I would like to be able to get changes for the top object AND the related entitycollections at the same time.

I played around a bit with a topauditor and subauditors where the topauditor's GetAuditEntitiesToSave returns all changes to see if I could find a way to do this but one problem that I run into is that if nothing is cahnged on the top object this method is of course never executed.

Any tips on getting changes for a full objectgraph would be most appreciated!

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 03-May-2012 20:47:04   

Why don't you do auditing per entity type separately? Why do you need to audit the connected graph?