Data Types of Business Class Properties and Built-in Property Editors
- 2 minutes to read
This documentation section includes the following topics, which provide information on data types supported by XAF and corresponding Property Editors, intended to visually represent a property in the UI.
- Key Properties
- String Properties
- Numeric Properties
- Date and Time Properties
- Boolean Properties
- BLOB Image Properties
- Collection Properties
- Reference (Foreign Key, Complex Type) Properties
- File Attachment Properties
- Enumeration Properties
- Type Properties
- Criteria Properties
- Color Properties
- Miscellaneous Property Types
Persist Custom Types or Represent Them Differently in the UI
If you need to store a type unsupported by your ORM in the database, refer to the Mapping Complex Types to the Database article.
If there is no built-in property editor for your specific task, you can easily add a custom one. Refer to the Implement Custom Property Editors topic to learn how to implement custom property editors.
Examples of Custom Property Editors for Popular Scenarios
- XAF - How to Display an Enumeration Property as a Drop-down Box with Check Boxes
- XAF - How to display a collection property as a checked list box
- XAF - How to show a hyper link (URL, email, etc.) for a business class property
- XAF Blazor - How to use a TagBox to view and edit a collection property in Detail Views
- XAF WinForms - How to use a custom Lookup Property Editor control for reference properties
- Multiple File Upload, Tag Box, Lookup, Markup Content Property Editors
- Progress Bar in Grid List Editor Cells
Custom Property Editors from the Multi-Tenant Application Demo (Outlook Inspired App)
The application serves as the central data management hub for the fictitious company, overseeing various business entities such as Employees, Products, Orders, Quotes, Customers, and Stores.
- An abstract list editor designed to create simple object-specific variants
- An abstract property editor that serves as a basis for editors such as ProgressPropertyEditor or PdfViewEditor
- A property editor that displays raw text (like the WinForms LabelPropertyEditor)
- An EnumPropertyEditor descendant that only displays an image (like its WinForms counterpart)
See Also