public NHTransaction(NHibernate.ISession session) { transaction = session.Transaction; if (transaction.IsActive) { isOriginator = false; // The method that first opened the transaction should also close it } else { transaction.Begin(); } }
/// <summary> /// Implementors should start the /// transaction on the underlying resource /// </summary> public void Start() { transaction.Begin(); }