public void Dispose()
 {
     if (NHibernator.SessionExist(sessionFactoryName))
     {
         ISession session = NHibernator.GetSession(sessionFactoryName);
         if ((transaction.WasCommitted == false) && (transaction.WasRolledBack == false))
         {
             NHibernator.Rollback(sessionFactoryName);
         }
     }
 }
 public NHibernatorTransaction(string sessionFactoryName)
 {
     this.sessionFactoryName = sessionFactoryName;
     NHibernator.BeginTransaction(sessionFactoryName);
     transaction = NHibernator.GetSession(sessionFactoryName).Transaction;
 }