Beispiel #1
0
 public void Dispose()
 {
     if (_currentSessionMgr.GetCurrentSession() != null)
     {
         _currentSessionMgr.GetCurrentSession().Dispose();
     }
     _currentSessionMgr = null;
 }
 public void Dispose()
 {
     if (_currentSessionMgr.GetCurrentSession() != null)
     {
         _currentSessionMgr.GetCurrentSession().Dispose();
     }
     _currentSessionMgr = null;
     CurrentSessionFactory.Clear();
 }
 private void Init()
 {
     _currentSessionMgr = new SessionMgr(_connstr);
     _currentSessionMgr.CreateSession();
 }