Transactions

Posts   
 
    
Carolyn
User
Posts: 1
Joined: 02-Apr-2008
# Posted on: 02-Apr-2008 03:02:01   

Hi,

we need to setup transactions as follows, i was wondering if it was possible and how to go about it.

Method A() { InsertRowIntoTable(); foreach operation { try { StartTrans(); ProcessOperation(); CommitTrans(); } catch { RollBackTransaction(); DeleteRowFromTable(); } } DeleteRowFromTable(); }

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 02-Apr-2008 15:32:55   

Please check the manual's section: Using the generated code -> SelfServicing/Adapter -> Transactions