Interface ISchemaValidator
Signature for component that want to interact when an automatic database schema update is to be executed.
Namespace: EPiServer.Data.SchemaUpdates
Assembly: EPiServer.Data.dll
Version: 12.0.3Syntax
public interface ISchemaValidator
Methods
BeforeUpdating(ConnectionStringOptions)
Called if Is
Declaration
void BeforeUpdating(ConnectionStringOptions connectionStringOptions)
Parameters
Type | Name | Description |
---|---|---|
Connection |
connectionStringOptions | The connection string settings for the database that will get a schema update. |
IsDatabaseUpdateAllowed(ConnectionStringOptions)
Called when need for a database schema update is detected.
Declaration
bool IsDatabaseUpdateAllowed(ConnectionStringOptions connectionStringOptions)
Parameters
Type | Name | Description |
---|---|---|
Connection |
connectionStringOptions | The connection string settings for the database that needs schema update. |
Returns
Type | Description |
---|---|
System. |
true if automatic update should be performed else false. |