예제 #1
0
        protected override INestableUnitOfWork InternalCreate(IUnitOfWork previousUnitOfWork)
        {
            ISession session = this.sessionFactory.OpenSession();

            session.Transaction.Begin();

            INHUnitOfWork newUnitOfWork = new NHUnitOfWork(session, previousUnitOfWork, this);

            return(newUnitOfWork);
        }
예제 #2
0
        protected override INestableUnitOfWork InternalCreate(IUnitOfWork previousUnitOfWork)
        {
            ISession session = this.sessionFactory.OpenSession();
            session.Transaction.Begin();

            INHUnitOfWork newUnitOfWork = new NHUnitOfWork(session, previousUnitOfWork, this);
            return newUnitOfWork;
        }