Exemplo n.º 1
0
 public static void CloseSessionFactory()
 {
     if (SessionFactory != null)
     {
         SessionFactory.Close();
     }
 }
Exemplo n.º 2
0
 public static void Dispose()
 {
     try
     {
         SessionFactory.Close();
     }
     catch
     {
     }
     SessionFactory.Dispose();
 }
Exemplo n.º 3
0
 public void TearDown()
 {
     Session.Close();
     SessionFactory.Close();
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Closes a session.
 /// </summary>
 public static void CloseSession()
 {
     SessionFactory.Close();
 }
 public void Cleanup()
 {
     SessionFactory.Close();
 }
Exemplo n.º 6
0
 public void Dispose()
 {
     SessionFactory.Close();
 }
Exemplo n.º 7
0
 /// <summary>
 /// Closes the session factory and destroys all connections
 /// </summary>
 public void DestroyConnections()
 {
     //Close the connections via the session factory
     SessionFactory.Close();
     _SessionFactory = null;
 }