This project is read-only.

For STSdb Multi-Threading Layer is very important after the end of the transaction to call transaction.Dispose(),
then the engine can correctly to do its job: release locks, unregister finished transaction etc.

That's why we use

using(var tran = engine.GetTransactio())
{
//do something

} //here Dispose will be called automatically, because it's Using.

Sure, it's also possible to use

var tran = engine.GetTransaction();

//do something
//BUT BE SURE THAT RAISED HERE EXCEPTION DOESN'T JUMP OVER tran.Dispose();

tran.Dispose();

Last edited Jan 25, 2012 at 5:14 PM by hhblaze, version 1

Comments

No comments yet.