What problem does it solve?
This Skill eliminates common errors, hallucinations, and incorrect API usage when implementing data manipulation and business logic in DevExpress XAF applications by providing official, tested patterns for the core IObjectSpace abstraction.
Core Features & Use Cases
- ORM-Agnostic Guidance: Supports both EF Core and XPO, with automatic ORM detection and loading of XPO-specific sub-skills for advanced patterns.
- Comprehensive Code Patterns: Includes ready-to-use snippets for CRUD operations, ObjectSpace lifecycle event handling, IXafEntityObject hook implementation, NonPersistentObjectSpace configuration, and nested Object Space management for popup views.
- Real-World Use Case: For example, when building a XAF business class that needs to set default property values on object creation, or a controller that runs pre-save validation via the Committing event, this skill provides the correct implementation to avoid pitfalls like memory leaks from unsubscribed events or invalid persistent object instantiation.
Quick Start
Use this skill to generate a XAF ObjectViewController that creates a new persistent object, sets its required properties, and saves it to the database using the correct IObjectSpace API.