Class ConnectionStringOptions

Represents a single, named connection string.

Inheritance
System.Object
ConnectionStringOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Data
Assembly: EPiServer.Data.dll
Version: 11.20.7
Syntax
public class ConnectionStringOptions

Constructors

ConnectionStringOptions()

Declaration
public ConnectionStringOptions()

Properties

ConnectionString

Gets or sets the connection string.

Declaration
public string ConnectionString { get; set; }
Property Value
Type Description
System.String

Name

Gets or sets the name of the connection string.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
Remarks

The default name is 'EPiServerDB'.

ProviderName

Gets or sets the provider name.

Declaration
public string ProviderName { get; set; }
Property Value
Type Description
System.String
Remarks

The default provider name is 'System.Data.SqlClient'.

Operators

Implicit(String to ConnectionStringOptions)

Convert the connectionString string to ConnectionStringOptions.

Declaration
public static implicit operator ConnectionStringOptions(string connectionString)
Parameters
Type Name Description
System.String connectionString

The connection string

Returns
Type Description
ConnectionStringOptions

Extension Methods