Mapping Complex Types to the Database
XAF application supports the following ORMs:
- Entity Framework (EF)
- Entity Framework Core (for .NET Core 3+, .NET Standard 2+, and .NET 5+ projects)
- eXpressPersistent Objects (XPO).
Depending on ORM used in your application, you can store a number of data types in the database. Data Types that can be persisted directly are listed in the Entity Data Model: Primitive Data Types and Data Types Supported by XPO articles.
To store an unsupported type in the database, you need to convert it to a supported one.
You can find code examples in the following articles:
XPO provides the ValueConverterAttribute used to persist types that are not supported by default.