Click or drag to resize

ConfigFileHelperReadConnectionStringFromConfig Method

Reads the value of the setting with the key CatalogNameUsageSetting from the *.config file and stores that value as the active setting for catalogNameUsageSetting for this instance, IF specified. If specified, a key with the name CatalogNameToUse is expected as well.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
public static string ReadConnectionStringFromConfig(
	string keyName
)

Parameters

keyName
Type: SystemString
Name of the key.

Return Value

Type: String
the connection string, if found, otherwise empty string
Remarks
First tries to read from the connectionstrings settings (new in .NET 2.0). If not found, it will try to read it from the appSettings tag
See Also