internal NHibernateBulkUnitOfWork(NHibernatePersistenceManager persistenceManager, Conversation conversation, bool autoCommit = false, bool throwExceptionOnError = true)
 {
     this.PersistenceManager    = persistenceManager;
     this.autoCommit            = autoCommit;
     this.throwExceptionOnError = throwExceptionOnError;
     this.Conversation          = conversation;
     this.Conversation.Start(this);
 }
Example #2
0
        public NHibernateSessionProvider()
        {
            pManager = (NHibernatePersistenceManager)IoCFactory.Container.Resolve <IPersistenceManager>();
            ISessionFactory sessionFactory = (ISessionFactory)pManager.Factory;
            Configuration   cf             = (Configuration)pManager.Configuration;

            session = sessionFactory.OpenSession(cf.Interceptor);
        }
Example #3
0
 public NHibernateUnitOfWorkFactory(NHibernatePersistenceManager pManager, Configuration cfg)
 {
     config         = cfg;
     manager        = pManager;
     sessionFactory = (ISessionFactory)manager.Factory;
 }