DirtyEntities of objects in PrefetchPaths

Posts   
 
    
tolga
User
Posts: 25
Joined: 26-Feb-2006
# Posted on: 03-Mar-2006 20:03:00   

Hi,

when I have an EntityCollection of records with multiple PrefetchPaths and I edit some of the objects in the prefetchpaths through databinding (or whatever) but don't edit the top level record in the main entitycollection, DirtyEntities (I think) is empty.

Is there a way to modify EntityCollection.DirtyEntities to return all the objects, which are either changed or reference objects (in PrefetchPaths) that are changed?

I guess I should be able to do this through iterating through all the objects in the EntityCollection and walking their PrefetchPaths to find if any of them are dirty???

How would I dynamically find out the PrefetchPaths of and EntityCOllection so that my code can work for any EntityCOllection?

Thanks

tolga
User
Posts: 25
Joined: 26-Feb-2006
# Posted on: 03-Mar-2006 20:06:47   

Sorry, this is a duplicate question. I couldn't find my other question and thought the post didn't go through.

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5532