Entity tracker for data modifications

Posts   
 
    
Yash
User
Posts: 20
Joined: 07-Jan-2010
# Posted on: 18-Jan-2010 11:27:28   

Hello,

I am just wondering if LLblGen(2.5) provides a facility to keep a track on Added, modified or deleted entities(just like MyEntColl.RemovedEntitiesTracker used in EntityCollection) in separate entity collection objects(say add\modified\deleted trackers) for in memory tracking of all DB operations ? If yes, then can we execute them when required like myDeletedTracker.DeleteMulti()? Please suggest.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 18-Jan-2010 15:19:25   

You have 2 options:

1- Use UnitOfWork (it should be used to hold entities, collections for Insert, Updates and Deletes, and these can be executed later).

2- Use EntityViews to filter an entity collection based on the IsNew and IsDirty flags (entity propertis).

Yash
User
Posts: 20
Joined: 07-Jan-2010
# Posted on: 20-Jan-2010 08:05:21   

Ok Thanks, will give it a try.

Walaa wrote:

You have 2 options:

1- Use UnitOfWork (it should be used to...