Unit of Work2 with Readcommit

Posts   
 
    
shekar
User
Posts: 327
Joined: 26-Mar-2010
# Posted on: 07-Dec-2010 11:11:46   

LLBLGEN 3.0 REL 3RD DEC .NET FRAMEWORK 2.0 WINDOWS APPLICATION ORACLE 9I/10G

Hello

Is there a way to use IsolationLevel.ReadCommitted along with unitofwork2 ? If yes how do i do it ?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Dec-2010 23:27:11   
UnitOfWork2 uow = new UnitOfWork2();
// ...
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.StartTransaction(IsolationLevel.ReadCommitted, "TestTrx");
try
{
    uow.Commit(adapter);
}
catch (Exception)
{               
    // manage error
}
David Elizondo | LLBLGen Support Team
shekar
User
Posts: 327
Joined: 26-Mar-2010
# Posted on: 08-Dec-2010 05:32:17   

daelmo wrote:

UnitOfWork2 uow = new UnitOfWork2();
// ...
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.StartTransaction(IsolationLevel.ReadCommitted, "TestTrx");
try
{
    uow.Commit(adapter);
}
catch (Exception)
{               
    // manage error
}

Thanks daelmo. I got it right