Transactions

Posts   
 
    
simon831
User
Posts: 152
Joined: 19-Jan-2006
# Posted on: 21-Jan-2010 11:34:55   

Under what circumstances should I use: adapter.StartTransaction Using(TransactionScope .... UnitOfWork2

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 21-Jan-2010 11:53:04   

adapter.StartTransaction

For database transactions

Using(TransactionScope ....

For distributed transactions

UnitOfWork2

For collecting entities and collections in memory to be procesed (INSERT/UPDATE/DELETE) later on. And once you decide to process them, the UOW uses a database transaction to commit the actions needed on those entities.