protected override INestableUnitOfWork InternalCreate(IUnitOfWork previousUnitOfWork) { ISession session = this.sessionFactory.OpenSession(); session.Transaction.Begin(); INHUnitOfWork newUnitOfWork = new NHUnitOfWork(session, previousUnitOfWork, this); return(newUnitOfWork); }
protected override INestableUnitOfWork InternalCreate(IUnitOfWork previousUnitOfWork) { ISession session = this.sessionFactory.OpenSession(); session.Transaction.Begin(); INHUnitOfWork newUnitOfWork = new NHUnitOfWork(session, previousUnitOfWork, this); return newUnitOfWork; }