Transactional

Transactional

Old forum URL: forums.lhotka.net/forums/t/6881.aspx


Frazer posted on Thursday, April 30, 2009

I note that DataPortal_Update methods (for example) are adorned with the Transactional attribute, E.G.:

[Transactional(TransactionalTypes.TransactionScope)]

However, Child_Update methods are not.

How does transactional scope and rolling back work for child objects? 

Frazer

 

RockfordLhotka replied on Thursday, April 30, 2009

The data portal only begins/commits a transaction at the root level. If the root is in a transaction, all child objects are in that same transaction, so the root and all its children are committed or rolled back as a unit.

Copyright (c) Marimer LLC