I have been going through and upgrading our software from using the 1.0 nHibernate library to the 1.2cr2 and I have noticed that there is a BIG lack of warning on the way the ISession.Transaction object has changed. Instead of ISession.Transaction being null when there is no db transaction happening it is now ISession.Transaction.IsActive and the ISession.Transaction.WasCommitted and .WasRolledBack are completely useless because, from what I understand and could be incorrect and please correct me if I am, once the db transcation is committed or rolledback a new ITransaction object is attached to the ISession. I just hope the documentation can be updated to help others going through what I have gone through.
|