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

Class CmsDatabaseSchemaUpdater

This class updates all scripts from EPiServer.Commerce.Resources.SqlUpdateCMSScript.zip embeded resource inside the EPiServer.Business.Commerce.

Inheritance
System.Object
CmsDatabaseSchemaUpdater
Implements
EPiServer.Data.SchemaUpdates.IDatabaseSchemaUpdater
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.Commerce
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
[Obsolete("This class implements a deprecated interface and is no longer used. It is superseded by an internal ISchemaUpdater implementation.")]
public class CmsDatabaseSchemaUpdater : DatabaseVersionValidator, IDatabaseSchemaUpdater

Constructors

CmsDatabaseSchemaUpdater(IDatabaseFactory, EPiServerFrameworkSection, ScriptExecutor, IConnectionStringHandler)

Initializes a new instance of the CmsDatabaseSchemaUpdater class.

Declaration
public CmsDatabaseSchemaUpdater(IDatabaseFactory databaseFactory, EPiServerFrameworkSection frameworkSection, ScriptExecutor scriptExecutor, IConnectionStringHandler connectionHandler)
Parameters
Type Name Description
EPiServer.Data.Providers.IDatabaseFactory databaseFactory

The database handler.

EPiServer.Framework.Configuration.EPiServerFrameworkSection frameworkSection

The framework section.

EPiServer.Data.SchemaUpdates.ScriptExecutor scriptExecutor

The script executor.

IConnectionStringHandler connectionHandler

The connection handler, which contains connection string to both CMS and Commerce database.

Properties

ZipFileName

Declaration
protected virtual string ZipFileName { get; }
Property Value
Type Description
System.String

Methods

GetStatus(ConnectionStringsSection)

Declaration
public DatabaseSchemaStatus GetStatus(ConnectionStringsSection connectionStrings)
Parameters
Type Name Description
System.Configuration.ConnectionStringsSection connectionStrings
Returns
Type Description
EPiServer.Data.SchemaUpdates.DatabaseSchemaStatus

Update(ConnectionStringSettings)

This will not use the supplied connectionstring. It will always use the connectionstring from Data.Configuration.EPiServerDataStoreSection.Instance.ResolveConnectionStringSettings()

Declaration
public void Update(ConnectionStringSettings connectionStringSettings)
Parameters
Type Name Description
System.Configuration.ConnectionStringSettings connectionStringSettings

Not used.

Implements

EPiServer.Data.SchemaUpdates.IDatabaseSchemaUpdater