Exemple #1
0
		public SessionProvider(IConfigurationBuilder builder, NHInterceptorFactory interceptorFactory, IWebContext webContext, DatabaseSection config)
		{
			nhSessionFactory = builder.BuildSessionFactory();
			this.webContext = webContext;
			this.interceptorFactory = interceptorFactory;
			this.isolation = config.Isolation;
		}
Exemple #2
0
 public SessionProvider(IConfigurationBuilder builder, NHInterceptorFactory interceptorFactory, IWebContext webContext, DatabaseSection config)
 {
     nhSessionFactory = builder.BuildSessionFactory();
     logger.Debug("Built Session Factory " + DateTime.Now);
     this.webContext         = webContext;
     this.interceptorFactory = interceptorFactory;
     this.isolation          = config.Isolation;
 }
 public SessionProvider(IConfigurationBuilder builder, NHInterceptorFactory interceptorFactory, IWebContext webContext, DatabaseSection config)
 {
     nhSessionFactory          = builder.BuildSessionFactory();
     this.webContext           = webContext;
     this.interceptorFactory   = interceptorFactory;
     this.isolation            = config.Isolation;
     this.autoStartTransaction = config.AutoStartTransaction;
     this.CacheEnabled         = config.Caching;
 }
Exemple #4
0
		public SessionProvider(IConfigurationBuilder builder, NHInterceptorFactory interceptorFactory, IWebContext webContext, DatabaseSection config)
		{
			nhSessionFactory = builder.BuildSessionFactory();
			this.webContext = webContext;
			this.interceptorFactory = interceptorFactory;
			this.isolation = config.Isolation;
			this.autoStartTransaction = config.AutoStartTransaction;
			this.CacheEnabled = config.Caching;
		}
 public FakeSessionProvider(IConfigurationBuilder builder, NHInterceptorFactory factory, IWebContext webContext)
     : base(builder, factory, webContext, new N2.Configuration.DatabaseSection())
 {
     this.factory = factory;
 }