Пример #1
0
 private void Cleanup()
 {
     sessions.Close();
     sessions           = null;
     spatialDialect     = null;
     connectionProvider = null;
     lastOpenedSession  = null;
     configuration      = null;
 }
Пример #2
0
		private void Cleanup()
		{
			sessions.Close();
			sessions = null;
			spatialDialect = null;
			connectionProvider = null;
			lastOpenedSession = null;
			configuration = null;
		}
Пример #3
0
		private void BuildSessionFactory()
		{
			sessions = configuration.BuildSessionFactory();
			spatialDialect = (ISpatialDialect)((ISessionFactoryImplementor)this.sessions).Dialect;
			connectionProvider = ((ISessionFactoryImplementor)this.sessions).ConnectionProvider as DebugConnectionProvider;
		}
Пример #4
0
 private void BuildSessionFactory()
 {
     sessions           = configuration.BuildSessionFactory();
     spatialDialect     = (ISpatialDialect)((ISessionFactoryImplementor)this.sessions).Dialect;
     connectionProvider = ((ISessionFactoryImplementor)this.sessions).ConnectionProvider as DebugConnectionProvider;
 }