Click or drag to resize
Askia

PersistentInitWebProdDatabaseConnection Method

Initializes the connection to the webprod database

Namespace:  AskiaCore
Assembly:  AskiaCore (in AskiaCore.dll) Version: 6.0.0-build000000000000000000000000000000000000000001
Syntax
public static void InitWebProdDatabaseConnection(
	string accessString
)

Parameters

accessString
Type: SystemString
Connection string or path for the database access, depending on the database type
Remarks
For .NET web project you may use the Global.asax to initialise the database connection
Examples

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

using AskiaCore;

namespace MyApp
{
    public class Global : HttpApplication
    {
        protected void Application_Start(object sender, EventArgs e)
        {
            // Initialize the database connection string
            Persistent.InitWebProdDatabaseConnection("connectionstring");
        }
    }
}
See Also