コード例 #1
0
        public void DisposeUnitOfWork(NHibernateUnitOfWorkAdapter adapter)
        {
            ISession session = null;

            if (adapter.Previous != null)
            {
                session = adapter.Previous.Session;
            }
            CurrentSession = session;
            UnitOfWork.DisposeUnitOfWork(adapter);
        }
コード例 #2
0
 public void DisposeUnitOfWork(NHibernateUnitOfWorkAdapter adapter)
 {
     ISession session = null;
     if (adapter.Previous != null)
         session = adapter.Previous.Session;
     CurrentSession = session;
     UnitOfWork.DisposeUnitOfWork(adapter);
 }
コード例 #3
0
 public NHibernateUnitOfWorkAdapter(NHibernateUnitOfWorkFactory factory, ISession session, NHibernateUnitOfWorkAdapter previous)
 {
     this.factory  = factory;
     this.session  = session;
     this.previous = previous;
 }
コード例 #4
0
 public NHibernateUnitOfWorkAdapter(NHibernateUnitOfWorkFactory factory, ISession session, NHibernateUnitOfWorkAdapter previous)
 {
     this.factory = factory;
     this.session = session;
     this.previous = previous;
 }