Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

Interface IDatabaseFactory

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

Namespace: EPiServer.Data.Providers
Assembly: EPiServer.Data.dll
Version: 7.19.2
Syntax
public interface IDatabaseFactory

Properties

CurrentHandler

Get the current IDatabaseHandler with the connection string for the current site.

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

Methods

CreateDefaultHandler()

Create a new IDatabaseHandler with the connection string for the current site.

Declaration
IDatabaseHandler CreateDefaultHandler()
Returns
Type Description
IDatabaseHandler

A newly constructed handler

CreateHandler(ConnectionStringSettings)

Creates a new IDatabaseHandler with the specified connection string.

Declaration
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

Extension Methods