Back to Devexpress

Supply Initial Data

expressappframework-402985-getting-started-in-depth-tutorial-blazor-define-data-model-and-set-initial-data-define-data-model-and-set-initial-data-with-ef-core-supply-initial-data-ef-core.md

latest1.5 KB
Original Source

Supply Initial Data

  • Feb 16, 2026
  • 2 minutes to read

This lesson explains how to specify initial data in your application.

Note

Before you proceed, take a moment to review the previous lessons:

Step-by-Step Instructions

  1. Expand the MySolution.Module project in the Solution Explorer and go to the DatabaseUpdate folder. Open the Updater.cs file and add the following code to the ModuleUpdater.UpdateDatabaseAfterUpdateSchema method:

  2. Run the application.

  3. Select the Employee item in the navigation control and invoke the Detail View for the new employee:

Tip

You can also use Data Seeding to specify initial data.

Next Lesson

Configure a One-to-Many Relationship