Class ConnectionStrings
Represents a single connection string.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
public class ConnectionStrings
Fields
View SourceDataDirectoryPlaceholder
The DataDirectory placeholder.
Declaration
public const string DataDirectoryPlaceholder = "|DataDirectory|"
Field Value
Type | Description |
---|---|
System.String |
DefaultProviderName
The default provider name when not present in configuration.
Declaration
public const string DefaultProviderName = "Microsoft.Data.SqlClient"
Field Value
Type | Description |
---|---|
System.String |
ProviderNamePostfix
The postfix used to identify a connection strings provider setting.
Declaration
public const string ProviderNamePostfix = "_ProviderName"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceConnectionString
Gets or sets the connection string.
Declaration
public string ConnectionString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The connection string. |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
ProviderName
Gets or sets the name of the provider.
Declaration
public string ProviderName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the provider. |