Back to Devexpress

ModuleUpdater.UpdateDatabaseAfterUpdateSchema() Method

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

latest6.8 KB
Original Source

ModuleUpdater.UpdateDatabaseAfterUpdateSchema() Method

Performs a database update after the database schema is updated.

Namespace : DevExpress.ExpressApp.Updating

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

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

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 UpdateDatabaseAfterUpdateSchema() 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-how-to-create-information-panels/CS/EFCore/InfoPanelEF/InfoPanelEF.Module/DatabaseUpdate/MyUpdater.cs#L15

csharp
public override void UpdateDatabaseAfterUpdateSchema() {
    base.UpdateDatabaseAfterUpdateSchema();
    //,new MyUpdater(objectSpace,versionFromDB)

xaf-how-to-implement-a-singleton-class/CS/EF/SingletonSolutionEF/SingletonSolutionEF.Module/DatabaseUpdate/Updater.cs#L17

csharp
public override void UpdateDatabaseAfterUpdateSchema() {
    base.UpdateDatabaseAfterUpdateSchema();
    if (ObjectSpace.GetObjectsCount(typeof(Singleton), null) == 0) {

XAF-search-objects-using-complex-criterion/CS/EFCore/ComplexSearchEF/ComplexSearchEF.Module/DatabaseUpdate/MyUpdater.cs#L15

csharp
public override void UpdateDatabaseAfterUpdateSchema() {
    base.UpdateDatabaseAfterUpdateSchema();
    //,new MyUpdater(objectSpace,versionFromDB)

xaf-how-to-show-a-custom-form-as-the-winforms-dashboard-designer/CS/EF/DashboardCustomFormEF/DashboardCustomFormEF.Module/DatabaseUpdate/Updater.cs#L16

csharp
public override void UpdateDatabaseAfterUpdateSchema() {
    base.UpdateDatabaseAfterUpdateSchema();
    //string name = "MyName";

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

csharp
public override void UpdateDatabaseAfterUpdateSchema() {
    base.UpdateDatabaseAfterUpdateSchema();
    //,new MyUpdater(objectSpace,versionFromDB)

xaf-how-to-display-a-collection-property-as-a-checked-list-box/VB/DXExample.Module.Web/Updater.vb#L15

vb
Public Overrides Sub UpdateDatabaseAfterUpdateSchema()
    MyBase.UpdateDatabaseAfterUpdateSchema()
End Sub

xaf-how-to-enforce-password-complexity-in-xaf/VB/Solution161.Module.Win/Updater.vb#L15

vb
Public Overrides Sub UpdateDatabaseAfterUpdateSchema()
    MyBase.UpdateDatabaseAfterUpdateSchema()
End Sub

xaf-how-to-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application/VB/WinWebSolution.Module/Updater.vb#L16

vb
Public Overrides Sub UpdateDatabaseAfterUpdateSchema()
    MyBase.UpdateDatabaseAfterUpdateSchema()
End Sub

xaf-how-to-implement-a-security-system-user-based-on-an-existing-business-class/VB/EmployeeAsUserExample.Module/DatabaseUpdate/Updater.vb#L19

vb
Public Overrides Sub UpdateDatabaseAfterUpdateSchema()
    MyBase.UpdateDatabaseAfterUpdateSchema()
    Dim adminEmployeeRole As EmployeeRole = ObjectSpace.FindObject(Of EmployeeRole)(New BinaryOperator("Name", SecurityStrategy.AdministratorRoleName))

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

vb
Public Overrides Sub UpdateDatabaseAfterUpdateSchema()
    MyBase.UpdateDatabaseAfterUpdateSchema()
    'CreateSecurityObjects();

See Also

Supply Initial Data

ModuleUpdater Class

ModuleUpdater Members

DevExpress.ExpressApp.Updating Namespace