Transaction.Add() --> Child objects?

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 29-Dec-2006 05:12:17   

When we add a collection to a transaction and call the SaveMulti(true) method do the children also get added to the transaction?

Ian

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 29-Dec-2006 08:09:22   

Yes, When you add an entity or entity collection to a transaction, all the objects or collections within are added to the transaction too.

ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 29-Dec-2006 08:14:57   

That's wonderful.