November Happy Hour will be moved to Thursday December 5th.

Class DataInitialization

Main initialization module for EPiServer.Data

Inheritance
System.Object
DataInitialization
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: 10.10.4
Syntax
[InitializableModule]
[ModuleDependency(typeof(ServiceContainerInitialization))]
public class DataInitialization : IConfigurableModule, IInitializableModule

Constructors

DataInitialization()

Declaration
public DataInitialization()

Properties

Instance

Declaration
[Obsolete("A static instance is no longer available")]
public static DataInitialization Instance { get; }
Property Value
Type Description
DataInitialization

Methods

ConfigureContainer(ServiceConfigurationContext)

Declaration
public virtual void ConfigureContainer(ServiceConfigurationContext context)
Parameters
Type Name Description
ServiceConfigurationContext context

Initialize(InitializationEngine)

Declaration
public void Initialize(InitializationEngine context)
Parameters
Type Name Description
InitializationEngine context

InitializeFromCode(IContainer, IDatabaseFactory, CacheProvider)

Initializes EPiServer Data for usage in unit test, and command line applications.

Declaration
[Obsolete("No longer supported")]
public static void InitializeFromCode(IContainer container, IDatabaseFactory dbHandlerFactory, CacheProvider cacheProvider)
Parameters
Type Name Description
StructureMap.IContainer container

The container to configure with EPiServer Data

IDatabaseFactory dbHandlerFactory

The database handler factory to use in the container

CacheProvider cacheProvider

The DDS cache provider to use, or null to use the default provider from config.

Remarks

Do not use this when running an EPiServer web site since this method will overwrite shared objects.

Uninitialize(InitializationEngine)

Declaration
public void Uninitialize(InitializationEngine context)
Parameters
Type Name Description
InitializationEngine context

Implements

Extension Methods