Click or drag to resize
Askia

PersistentEndDatabaseConnection Method

Closes the connection of the main database used by AskiaCore

Namespace:  AskiaCore
Assembly:  AskiaCore (in AskiaCore.dll) Version: 6.0.0-build000000000000000000000000000000000000000001
Syntax
public static void EndDatabaseConnection()
Remarks
For .NET web project you may use the Global.asax to release the database connection
Examples

Release the database connection in the Global.asax of the .NET web project

using AskiaCore;

namespace MyApp
{
    public class Global : HttpApplication
    {
        protected void Application_End(object sender, EventArgs e)
        {
            // Release the database connection
            Persistent.EndDatabaseConnection();
        }
    }
}
See Also