I'm working with NHibernate 1.2 beta3, against an Oracle database and stumbled with what seems to be a bug with the WasCommitted flag (occurs in both ADO.NET providers).
This code will demonstrate the problem:
Code:
transaction = session.BeginTransaction();
transaction.Commit();
Console.WriteLine(session.Transaction.WasCommitted.ToString());
Console.WriteLine(transaction.WasCommitted.ToString());
Executing this code will print
'False' for the session.Transaction.WasCommitted and a desired 'True' for the transaction.WasCommitted.
This does not accure in NHibernate 1.0.3 version.