devexpress-xaf-filtering-xpo

Implement secure XPO filtering patterns for DevExpress XAF applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves common pain points of implementing XPO-specific filtering in XAF applications, including incorrect criteria syntax, security bypass risks, performance issues with large datasets, and unsupported LINQ expressions that cause runtime errors.

Core Features & Use Cases

  • XPO Collection & Criteria Filtering: Filter XPCollection<T> with programmatic CriteriaOperator, add sorting, limit results with TopReturnedObjects, and define association collections in business classes.
  • Type-Safe LINQ Queries: Use XPQuery<T> for compile-time safe filtering, aggregations, and projections over XPO data, with fallbacks to CriteriaOperator for unsupported LINQ operators.
  • Server-Mode & Session Methods: Configure high-performance server-mode data sources (XPServerCollectionSource, XPInstantFeedbackSource) for large datasets, and use Session.FindObject/Session.GetObjects for direct XPO queries.
  • Use Case: For example, when building an XAF admin panel that displays filtered order data, this skill ensures filtering follows XPO best practices to respect XAF security rules and avoid performance bottlenecks.

Quick Start

Use this skill to implement secure filtering for an XAF XPO-based order list view that only shows active orders from the last 30 days, using XPQuery<T> for type-safe querying.

Frequently Asked Questions about devexpress-xaf-filtering-xpo

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

FAQPage Schema
How do I apply secure XPO filtering in XAF applications?

Secure XPO filtering in XAF uses programmatic CriteriaOperator construction and XPQuery<T> LINQ queries. This ensures data queries respect XAF security compliance rules and prevents security bypass risks.

What is the best way to query large datasets with XPO without performance bottlenecks?

Configuring high-performance server-mode data sources like XPServerCollectionSource or XPInstantFeedbackSource is the best way to query large XPO datasets. This approach avoids performance bottlenecks by offloading data processing to the server.

Can I use LINQ queries with XPCollection for XPO data filtering?

XPQuery<T> provides type-safe LINQ queries for compile-time safe filtering over XPO data. For unsupported LINQ operators that cause runtime errors, fall back to programmatic CriteriaOperator construction.

How do I limit results and add sorting to an XPCollection<T> in XAF?

You can limit results in an XPCollection<T> by setting TopReturnedObjects and applying programmatic CriteriaOperator for filtering. Sorting criteria can also be added directly to the collection.

When should I use XPView lightweight projections instead of XPQuery<T>?

XPView provides lightweight projections for XPO data when you need optimized read-only access without loading full business objects. Use XPQuery<T> when you require type-safe filtering and aggregations over live business classes.

Does Session.FindObject respect XAF security rules when querying XPO data?

Session.FindObject usage must follow XPO-specific data filtering patterns to satisfy XAF security compliance. Correct implementation ensures direct XPO queries do not bypass application security rules.