Back to Devexpress

Extend the Data Model

expressappframework-404256-getting-started-in-depth-tutorial-blazor-define-data-model-and-set-initial-data-define-data-model-and-set-initial-data-with-ef-core-extend-the-data-model.md

latest1.1 KB
Original Source

Extend the Data Model

  • Jun 26, 2025
  • 3 minutes to read

This lesson explains how to extend your entity class with different properties.

During this lesson, you will do the following:

  • Add properties of different types to the entity class.
  • See how the field editor type depends on the property’s value type.
  1. Add the following properties to the Employee class:

  2. Run the application and invoke the Employee object’s Detail View. The application displays a date picker for the DateTime type of values (see Birthday ) and a combo box for the enumeration fields (see Title Of Courtesy ):

  3. Extend the Employee class further with the following properties. Note the attributes that decorate these properties. Use hyperlinks to learn more about the attributes if their meanings are not immediately clear.

  4. Run the application and invoke the Employee object’s Detail View:

Next Lesson

Supply Initial Data