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: 11.20.7Syntax
public interface ISchemaValidator
Methods
BeforeUpdating(ConnectionStringOptions)
Called if IsDatabaseUpdateAllowed(ConnectionStringOptions) returns true. If any action is needed before database update it can be done here.
Declaration
void BeforeUpdating(ConnectionStringOptions connectionStringOptions)
Parameters
Type | Name | Description |
---|---|---|
ConnectionStringOptions | 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 |
---|---|---|
ConnectionStringOptions | connectionStringOptions | The connection string settings for the database that needs schema update. |
Returns
Type | Description |
---|---|
System.Boolean | true if automatic update should be performed else false. |