Hi,
I can't find in the documentation if a Transaction.Dispose performs a RollBack() if it hasn't been commited yet.
What i would like to know, instead of this:
using(Transaction transaction = new Transaction(IsolationLevel.Serializable, "Update")){
try
{
// perform actions
} catch (Exception) {
transaction.Rollback();
throw;
}
transaction.Commit();
}
can I use this syntax?:
using(Transaction transaction = new Transaction(IsolationLevel.Serializable, "Update")){
// perform actions
transaction.Commit();
}
Thanks!