Rollback and Commit control in CSLA transaction

Rollback and Commit control in CSLA transaction

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


vijay posted on Thursday, December 16, 2010

Visual Studio 2008/CSLA 3.5

Hello

We are using CSLA transaction for database operations.

[Transactional(TransactionalTypes.TransactionScope)]
protected override void DataPortal_Update()

....other code (update/insert/delete) goes here..

Q. How can i control rollback or commit and not depend on CSLA. This is required where based on some conditions i need to do commit/rollback and come out of the process?

Thanks

RockfordLhotka replied on Thursday, December 16, 2010

Use manual transactions (don't use the Transactional attribute) and create your own TransactionScope object.

Copyright (c) Marimer LLC