Class CommerceDatabaseSchemaUpdater
This class updates all scripts from EPiServer.Commerce.Resources.SqlUpdateCommerceScript.zip embeded resource inside the EPiServer.Business.Commerce.
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.2Syntax
[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, 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