Class CommerceDatabaseSchemaUpdater

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

Inheritance
System.Object
CommerceDatabaseSchemaUpdater
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: 10.8.0
Syntax
[Obsolete("This class implements a deprecated interface and is no longer used. It is superseded by an internal ISchemaUpdater implementation.")]
public class CommerceDatabaseSchemaUpdater : DatabaseVersionValidator, IDatabaseSchemaUpdater

Constructors

CommerceDatabaseSchemaUpdater(IDatabaseFactory)

Initializes a new instance of the DatabaseVersionValidator class.

Declaration
[Obsolete("This constructor was obsoleted. Will remain at least until August 2017.")]
public CommerceDatabaseSchemaUpdater(IDatabaseFactory databaseFactory)
Parameters
Type Name Description
EPiServer.Data.Providers.IDatabaseFactory databaseFactory

The database handler.

CommerceDatabaseSchemaUpdater(IDatabaseFactory, ScriptExecutor, IConnectionStringHandler)

Initializes a new instance of the DatabaseVersionValidator class.

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

The database handler.

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)

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

Implements

EPiServer.Data.SchemaUpdates.IDatabaseSchemaUpdater