SaaS CMS has officially launched! Learn more now.

Class SqlDatabaseFactory

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
SqlDatabaseFactory
Implements
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.Providers
Assembly: EPiServer.Data.dll
Version: 7.19.2
Syntax
public class SqlDatabaseFactory : IDatabaseFactory

Constructors

SqlDatabaseFactory()

Declaration
public SqlDatabaseFactory()

Properties

CurrentHandler

The current database handler

Declaration
public IDatabaseHandler CurrentHandler { get; }
Property Value
Type Description
IDatabaseHandler

Methods

CreateDefaultHandler()

Creates a new SqlDatabaseHandler with the connection string for the current site.

Declaration
public IDatabaseHandler CreateDefaultHandler()
Returns
Type Description
IDatabaseHandler

A newly constructed handler

CreateHandler(ConnectionStringSettings)

Creates a new SqlDatabaseHandler with the specified connection string.

Declaration
public IDatabaseHandler CreateHandler(ConnectionStringSettings connectionString)
Parameters
Type Name Description
System.Configuration.ConnectionStringSettings connectionString

The connection string from which to construct a handler

Returns
Type Description
IDatabaseHandler

A newly constructed handler

GetCurrentSiteSettings()

Get current site data settings

Declaration
protected virtual SiteDataSettingsElement GetCurrentSiteSettings()
Returns
Type Description
SiteDataSettingsElement

Implements

Extension Methods