Пример #1
0
 private void Cleanup()
 {
     sessions.Close();
     sessions           = null;
     connectionProvider = null;
     lastOpenedSession  = null;
     cfg = null;
 }
Пример #2
0
 protected virtual void BuildSessionFactory()
 {
     sessions           = cfg.BuildSessionFactory();
     connectionProvider = sessions.ConnectionProvider as DebugConnectionProvider;
 }