public static void CloseSessionFactory() { if (SessionFactory != null) { SessionFactory.Close(); } }
public static void Dispose() { try { SessionFactory.Close(); } catch { } SessionFactory.Dispose(); }
public void TearDown() { Session.Close(); SessionFactory.Close(); }
/// <summary> /// Closes a session. /// </summary> public static void CloseSession() { SessionFactory.Close(); }
public void Cleanup() { SessionFactory.Close(); }
public void Dispose() { SessionFactory.Close(); }
/// <summary> /// Closes the session factory and destroys all connections /// </summary> public void DestroyConnections() { //Close the connections via the session factory SessionFactory.Close(); _SessionFactory = null; }