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.8.0.0 (5.8.21.0111)
Syntax public static string ReadConnectionStringFromConfig(
string keyName
)
Public Shared Function ReadConnectionStringFromConfig (
keyName As String
) As String
Parameters
- keyName
- Type: SystemString
Name of the key.
Return Value
Type:
Stringthe 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