Back to Devexpress

ModuleUpdater.UpdateDatabaseBeforeUpdateSchema() Method

expressappframework-devexpress-dot-expressapp-dot-updating-dot-moduleupdater-2107c671.md

latest4.9 KB
Original Source

ModuleUpdater.UpdateDatabaseBeforeUpdateSchema() Method

Performs a database update before the database schema is updated.

Namespace : DevExpress.ExpressApp.Updating

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public virtual void UpdateDatabaseBeforeUpdateSchema()
vb
Public Overridable Sub UpdateDatabaseBeforeUpdateSchema

Remarks

To learn how to use this method, refer to the ModuleUpdater class description.

The following code snippets (auto-collected from DevExpress Examples) contain references to the UpdateDatabaseBeforeUpdateSchema() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-win-add-custom-button-to-form-using-custom-view-item/CS/EFCore/ButtonInFormEF/ButtonInFormEF.Module/DatabaseUpdate/Updater.cs#L27

csharp
public override void UpdateDatabaseBeforeUpdateSchema() {
    base.UpdateDatabaseBeforeUpdateSchema();
}

xaf-how-to-access-the-master-detailview-information-from-a-nested-listview-controller/CS/EFCore/GetMasterFrameEF/GetMasterFrameEF.Module/DatabaseUpdate/Updater.cs#L27

csharp
public override void UpdateDatabaseBeforeUpdateSchema() {
    base.UpdateDatabaseBeforeUpdateSchema();
}

xaf-print-a-report-without-displaying-a-preview/CS/EFCore/InstantReportEF/InstantReportEF.Module/DatabaseUpdate/Updater.cs#L27

csharp
public override void UpdateDatabaseBeforeUpdateSchema() {
    base.UpdateDatabaseBeforeUpdateSchema();
}

xaf-how-to-execute-actions-in-code/CS/EFCore/ExecuteActionEF/ExecuteActionEF.Module/DatabaseUpdate/Updater.cs#L27

csharp
public override void UpdateDatabaseBeforeUpdateSchema() {
    base.UpdateDatabaseBeforeUpdateSchema();
}

xaf-how-to-implement-dependent-views-in-a-dashboardview-filter-based-on-selection/CS/EFCore/DependentDashboardEF/DependentDashboardEF.Module/DatabaseUpdate/Updater.cs#L27

csharp
public override void UpdateDatabaseBeforeUpdateSchema() {
    base.UpdateDatabaseBeforeUpdateSchema();
}

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module/DatabaseUpdate/Updater.vb#L32

vb
Public Overrides Sub UpdateDatabaseBeforeUpdateSchema()
    MyBase.UpdateDatabaseBeforeUpdateSchema()
    'if(CurrentDBVersion < new Version("1.1.0.0") && CurrentDBVersion > new Version("0.0.0.0")) {

See Also

Handle Renamings and Deletions of Business Classes and their Properties

ModuleUpdater Class

ModuleUpdater Members

DevExpress.ExpressApp.Updating Namespace