コード例 #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;
        }