Class CmsDatabaseSchemaUpdater
This class updates all scripts from EPiServer.Commerce.Resources.SqlUpdateCMSScript.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: 10.8.0Syntax
[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)
Initializes a new instance of the CmsDatabaseSchemaUpdater class.
Declaration
[Obsolete("This constructor was obsoleted. Will remain at least until August 2017.")]
public CmsDatabaseSchemaUpdater(IDatabaseFactory databaseFactory)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Data.Providers.IDatabaseFactory | databaseFactory | The database factory. |
CmsDatabaseSchemaUpdater(IDatabaseFactory, EPiServerFrameworkSection)
Initializes a new instance of the CmsDatabaseSchemaUpdater class.
Declaration
[Obsolete("This constructor was obsoleted. Will remain at least until August 2017.")]
public CmsDatabaseSchemaUpdater(IDatabaseFactory databaseFactory, EPiServerFrameworkSection frameworkSection)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Data.Providers.IDatabaseFactory | databaseFactory | The database factory. |
EPiServer.Framework.Configuration.EPiServerFrameworkSection | frameworkSection | The framework section. |
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