devexpress-xaf-business-model

Implement XAF business model classes for .NET with EF Core or XPO.

39|7|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/DevExpress/agent-skills --skill devexpress-xaf-business-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devexpress-xaf-business-model
Source: https://github.com/DevExpress/agent-skills/tree/main/plugins/dx-xaf/skills/devexpress-xaf-business-model
Command: npx skills add https://github.com/DevExpress/agent-skills --skill devexpress-xaf-business-model

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

XAF developers often struggle with correctly implementing business model classes, choosing appropriate base classes, defining valid entity relationships, registering types properly, and avoiding ORM-specific pitfalls that cause runtime errors, broken UI generation, or database schema mismatches.

Core Features & Use Cases

  • Dual ORM Support: Provides complete patterns for both Entity Framework Core (recommended) and XPO, the two supported ORMs for XAF business models.
  • Relationship & Attribute Guidance: Includes code templates for one-to-many, many-to-many, aggregated, and one-to-one relationships, plus all common XAF attributes for UI and metadata control.
  • End-to-End Workflow Support: Covers entity registration, seed data setup, EF Core migration configuration, and reverse-engineering existing databases for XAF use.
  • Use Case: A developer building an XAF inventory management system can use this skill to correctly define Product and Category entities with a one-to-many relationship, apply XAF navigation attributes, and set up initial category seed data without manual trial and error.

Quick Start

Use this skill to create a new XAF business class for a Contact entity with FirstName and LastName properties, a one-to-many relationship to a Department entity, and default values set on object creation, using XPO as the ORM.

Frequently Asked Questions about devexpress-xaf-business-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create XAF business model classes using EF Core or XPO?

To create XAF business model classes, you define persistent entities with appropriate base classes, apply XAF attributes for automatic UI generation, and configure relationships specific to your chosen ORM, either EF Core or XPO.

What is the best way to configure one-to-many relationships in an XAF business model?

The best way to configure one-to-many relationships in an XAF business model is by applying ORM-specific code patterns and relationship templates that correctly link persistent entities and ensure database schema alignment for both EF Core and XPO.

Does this approach support setting up seed data and EF Core migrations for XAF?

Yes, implementing XAF business models includes end-to-end workflow support for setting up initial seed data and configuring EF Core migrations directly within your XAF solution.

Can I use XAF attributes to control automatic UI generation for my .NET entities?

Yes, you can apply XAF attributes directly to your persistent entity properties to control automatic UI generation, define navigation, and manage metadata for your .NET application without manual UI coding.

How do I register entity types properly in a DevExpress XAF application?

You register entity types properly by following ORM-specific code patterns during business model implementation, ensuring the XAF framework recognizes your persistent entities for correct runtime behavior and UI generation.

Why do my XAF business model classes cause runtime errors or database schema mismatches?

Runtime errors and database schema mismatches in XAF business models usually occur from choosing incorrect base classes, invalid entity relationships, or improper ORM configuration, which correct code patterns and attribute application prevent.