View Source
Class ConfigConnectionString
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ConfigConnectionString : object
Constructors
View Source
ConfigConnectionString(String, String, String)
Declaration
public ConfigConnectionString(string name, string connectionString, string providerName = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
connectionString |
|
System.String |
providerName |
|
Properties
View Source
ConnectionString
Declaration
public string ConnectionString { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
View Source
ProviderName
Declaration
public string ProviderName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
ParseProviderName(String)
Parses the connection string to get the provider name.
Declaration
public static string ParseProviderName(string connectionString)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
The connection string.
|
Returns
Type |
Description |
System.String |
The provider name or null is the connection string is empty.
|