Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class DefaultConnectionStringHandler

Handles connection string information for the CMS and Commerce database.

Inheritance
System.Object
DefaultConnectionStringHandler
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class DefaultConnectionStringHandler : Object, IConnectionStringHandler

Constructors

DefaultConnectionStringHandler(IConfiguration)

Declaration
public DefaultConnectionStringHandler(IConfiguration config)
Parameters
Type Name Description
Microsoft.Extensions.Configuration.IConfiguration config

Fields

CmsConnectionStringName

Declaration
public const string CmsConnectionStringName = "EPiServerDB"
Field Value
Type Description
System.String

CommerceConnectionStringName

Declaration
public const string CommerceConnectionStringName = "EcfSqlConnection"
Field Value
Type Description
System.String

Properties

Cms

Connection string settings for the CMS database.

Declaration
public ConnectionStringOptions Cms { get; }
Property Value
Type Description
EPiServer.Data.ConnectionStringOptions

Commerce

Connection string settings for the commerce database.

Declaration
public ConnectionStringOptions Commerce { get; }
Property Value
Type Description
EPiServer.Data.ConnectionStringOptions

Implements