Click or drag to resize

ConfigUseSqlLocalDbForTests Method

Usage of the SQLLocalDB for the Test environment. https://docs.microsoft.com/en-us/sql/tools/sqllocaldb-utility

Namespace:  AskiaPortalCmn.Configuration
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public static void UseSqlLocalDbForTests(
	string instanceName,
	string licenseKey
)

Parameters

instanceName
Type: SystemString
Name of the SQLLocalDb instance
licenseKey
Type: SystemString
License key to use
Remarks
In such case the connection strings are automatically built with the localDB instance name.

For master:
Server=(localdb)\.\{instanceName};Integrated Security=true;

For AskiaPortalTest:
Server=(localdb)\.\{instanceName};Initial Catalog=AskiaPortalTest;Integrated Security=true;

For AskiaPortalEventsTest:
Server=(localdb)\.\{instanceName};Initial Catalog=AskiaPortalEventsTest;Integrated Security=true;

See Also