| 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
)
Public Shared Sub InitWebProdDatabaseConnection (
accessString As String
)
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)
{
Persistent.InitWebProdDatabaseConnection("connectionstring");
}
}
}
See Also