public void DisposeUnitOfWork(NHibernateUnitOfWorkAdapter adapter)
        {
            ISession session = null;

            if (adapter.Previous != null)
            {
                session = adapter.Previous.Session;
            }
            CurrentSession = session;
            UnitOfWork.DisposeUnitOfWork(adapter);
        }
 public void DisposeUnitOfWork(NHibernateUnitOfWorkAdapter adapter)
 {
     ISession session = null;
     if (adapter.Previous != null)
         session = adapter.Previous.Session;
     CurrentSession = session;
     UnitOfWork.DisposeUnitOfWork(adapter);
 }
 public NHibernateUnitOfWorkAdapter(NHibernateUnitOfWorkFactory factory, ISession session, NHibernateUnitOfWorkAdapter previous)
 {
     this.factory  = factory;
     this.session  = session;
     this.previous = previous;
 }
 public NHibernateUnitOfWorkAdapter(NHibernateUnitOfWorkFactory factory, ISession session, NHibernateUnitOfWorkAdapter previous)
 {
     this.factory = factory;
     this.session = session;
     this.previous = previous;
 }