示例#1
0
 private void Cleanup()
 {
     sessions.Close();
     sessions           = null;
     connectionProvider = null;
     lastOpenedSession  = null;
     cfg = null;
 }
示例#2
0
		private void Cleanup()
		{
			sessions.Close();
			sessions = null;
			connectionProvider = null;
			lastOpenedSession = null;
			cfg = null;
		}
示例#3
0
 protected virtual void BuildSessionFactory()
 {
     sessions           = (ISessionFactoryImplementor)cfg.BuildSessionFactory();
     connectionProvider = sessions.ConnectionProvider as DebugConnectionProvider;
 }
示例#4
0
		protected virtual void BuildSessionFactory()
		{
			sessions = (ISessionFactoryImplementor)cfg.BuildSessionFactory();
			connectionProvider = sessions.ConnectionProvider as DebugConnectionProvider;
		}