public static void CloseSessionFactory()
 {
     if (SessionFactory != null)
     {
         SessionFactory.Close();
     }
 }
Exemple #2
0
 public static void Dispose()
 {
     try
     {
         SessionFactory.Close();
     }
     catch
     {
     }
     SessionFactory.Dispose();
 }
Exemple #3
0
 public void TearDown()
 {
     Session.Close();
     SessionFactory.Close();
 }
Exemple #4
0
 /// <summary>
 ///     Closes a session.
 /// </summary>
 public static void CloseSession()
 {
     SessionFactory.Close();
 }
 public void Cleanup()
 {
     SessionFactory.Close();
 }
Exemple #6
0
 public void Dispose()
 {
     SessionFactory.Close();
 }
Exemple #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;
 }