Adapter - How do I only partially recurse on SaveEntity

Posts   
 
    
JohnRLewis avatar
JohnRLewis
User
Posts: 27
Joined: 30-Aug-2004
# Posted on: 18-Feb-2005 18:26:48   

I'd like to recursively save an Entity, but avoid certain branches.

TableA has a 1 to many relation with TableB and TableC. TableB and TableC each have relationships to other tables as well.

I want to save the TableAEntity, and all of its child TableBEntities and all of TableB's children, but not TableC.

Does my problem make sense?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-Feb-2005 20:19:06   

Copy all C's in a.Cs to a new entity collection, then clear a.Cs and save a. Then re-add all C's in the new collection to a.Cs again.

Frans Bouma | Lead developer LLBLGen Pro