Insert or Update 2 different objects within a single transaction

Insert or Update 2 different objects within a single transaction

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


simisreedharan posted on Tuesday, August 20, 2013

Hi,

I have 2 business objects say ObjectA and ObjectB.

ObjectA has a set of child objects. So i have transaction attribute applied to the DataPortal_Create and DataPortal_Update of ObjectA

Similarly ObjectB has a set of child objects. So I have transaction attribute applied to the DataPortal_Create and DataPortal_Update of ObjectB.

Now here comes my requirement where i need to insert a record in ObjectA (and its child tables) and ObjectB (and its child tables) and this should happen within a single transaction.

How could i achieve this using CSLA framework?

Please guide me. I am new to CSLA framework.

Thanks

Simi

simisreedharan replied on Wednesday, August 21, 2013

Hi,

 

I got answer to my question.

The following link helped me

http://www.lhotka.net/cslanet/faq/SaveMultipleRootObjects.ashx

Thanks

Simi Sreedharan

Copyright (c) Marimer LLC