private void Cleanup() { sessions.Close(); sessions = null; connectionProvider = null; lastOpenedSession = null; cfg = null; }
protected virtual void BuildSessionFactory() { sessions = (ISessionFactoryImplementor)cfg.BuildSessionFactory(); connectionProvider = sessions.ConnectionProvider as DebugConnectionProvider; }