Skip to main content

Storage, ORM, and Business Model Design

  • 2 minutes to read

XAF allows you to build a Business Model with the following ORM tools:


Modeling Approaches

eXpress Persistent Objects (XPO) by DevExpress (Documentation)

  • Code First
  • Model First
  • Database First

Entity Framework Core by Microsoft (Documentation)

  • Code First
  • Database First


To manipulate and display data that is not necessarily coming from ORM, you can use non-persistent objects.

Business Classes

Business Class is a model of a real-world object your application operate with (for example, Contact, Address, Task, etc.). Each class that takes part in an XAF UI construction process is a business class. It can be a class mapped to a database table - Entity Framework Entity or XPO Persistent Object.

XAF collects your business classes and generates UI elements for them.

If you do not need to persist an object state to the database, you can declare a regular class and apply the DomainComponentAttribute attribute to it - such a class will also take part in UI construction (see Non-Persistent Objects).


You can find the information on Data Types for which XAF can automatically generate a UI in the following documentation section: Data Types Supported by built-in Editors.

If the type you need to use can be displayed in the UI, but the ORM tool you use cannot store this type in the database, refer to the Mapping Complex Types to the Database article.

See Also