コード例 #1
0
        public UnitOfWork(ISessionFactoryCreator sessionFactoryCreator, bool usingDistributedTransaction = true)
        {
            id = Guid.NewGuid();

            //creates the session factory
            sessionFactoryCreator.GetSessionFactory();
            session = sessionFactoryCreator.GetSessionFactory().OpenSession();

            //begins the transaction that will be used in the handler
            if (!usingDistributedTransaction)
            {
                session.BeginTransaction();
            }
        }
コード例 #2
0
 public ServiceXUoW(ISessionFactoryCreator sessionFactoryCreator)
     : base(sessionFactoryCreator)
 {
 }
コード例 #3
0
 public DomainUnitOfWork(ISessionFactoryCreator sessionFactoryCreator)
     : base(sessionFactoryCreator)
 {
 }