xaf-ef-models

Define EF Core business object models for DevExpress XAF apps.

6|2|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/kashiash/xaf-skills --skill xaf-ef-models
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xaf-ef-models
Source: https://github.com/kashiash/xaf-skills/tree/main/xaf-ef-models
Command: npx skills add https://github.com/kashiash/xaf-skills --skill xaf-ef-models

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplifies creating EF Core based XAF business objects by providing a reusable pattern for BaseObject-based entities, DbContextFactory setup, and common relationship configurations.

Core Features & Use Cases

  • Provides base class templates (BaseObject) with required interfaces (IXafEntityObject, IObjectSpaceLink, IOptimisticLock) for XAF compatibility.
  • Demonstrates setup of EF Core DbContextFactory with change tracking proxies and lazy loading for responsive UI.
  • Illustrates common relationships (one-to-many, many-to-many, one-to-one) and migration strategies within XAF projects.

Quick Start

Create a new EF Core XAF model by deriving entities from BaseObject and configuring a DbContextFactory with change tracking proxies and lazy loading.

Frequently Asked Questions about xaf-ef-models

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

FAQPage Schema
How do I define EF Core models for DevExpress XAF apps?

To define EF Core models for XAF apps, derive entities from a BaseObject template implementing IXafEntityObject, IObjectSpaceLink, and IOptimisticLock, then configure change tracking proxies and lazy loading for responsive UI.

How do I set up a DbContextFactory with change tracking proxies in XAF?

Setting up a DbContextFactory in XAF requires configuring change tracking proxies and lazy loading within the factory pattern to ensure proper OnModelCreating configurations and responsive Blazor, WinForms, or Web API UI interactions.

Can I use EF Core navigation properties and migrations across Blazor and WinForms XAF platforms?

Yes, EF Core navigation properties and migrations work across XAF Blazor, WinForms, and Web API platforms by applying common relationship configurations like one-to-many and many-to-many within the DbContext setup.

What interfaces are required for EF Core entities in a DevExpress XAF application?

EF Core entities in XAF require BaseObject inheritance and implementation of IXafEntityObject, IObjectSpaceLink, and IOptimisticLock interfaces to ensure framework compatibility, change tracking, and proper object space linking.

What is the best way to configure one-to-many and many-to-many relationships in XAF EF Core?

The best way to configure relationships like one-to-many and many-to-many in XAF EF Core is by using proper OnModelCreating configurations within a DbContextFactory to define navigation properties and migration strategies.

Why do I need change tracking proxies and lazy loading in my XAF EF Core project?

Change tracking proxies and lazy loading are needed in XAF EF Core projects to provide a responsive UI across Blazor and WinForms platforms by automatically loading navigation properties and tracking entity state changes.