Esempio n. 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);
        }
Esempio n. 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;
        }