TransactionalScope

TransactionalScope

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


Curtmantle posted on Tuesday, December 02, 2008

This is probably a silly question. I have the [Transactional(TransactionalTypes.TransactionScope)] marker for my DataPortal Insert and Update methods. If I delegate control to another procedure (say DoInsert) does this have any impact on the TransactionScope?

I'm assuming it doesn't, but wanted to be sure. Reflection isn't my strong suit.

Thanks.

Curtmantle replied on Tuesday, December 02, 2008

I feel I may need to expand. I have a switchable root and child class. I therefore need a DataPortal_Insert/Update override plus Protected Insert and Update methods for parents to call.

For convenience I want to create DoInsert and DoUpdate methods that handle both instances (connection, command and parameters) when they are identical in function. The DataPortal methods have TransactionScope set.

ajj3085 replied on Tuesday, December 02, 2008

That should work fine. 

Curtmantle replied on Wednesday, December 03, 2008

Thanks Ajj

Copyright (c) Marimer LLC