[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Collapse]eXpress Persistent Objects
 [Expand]Product Information
 [Expand]Getting Started
 [Expand]Fundamentals
 [Expand]Feature Center
 [Expand]Concepts
 [Expand]Design-Time Features
 [Expand]Examples
 [Expand]Member Tables
 [Collapse]API Reference
  [Collapse]DevExpress.Xpo
   [Expand]AggregatedAttribute Class
   [Expand]AssociationAttribute Class
    AsyncCommitCallback Delegate
    AsyncSelectDataCallback Delegate
    CacheBehavior Enumeration
    CollectionBindingBehavior Enumeration
   [Expand]ColumnDbDefaultValueAttribute Class
   [Expand]ColumnDefaultValueAttribute Class
   [Expand]CommitObjectStubsResult Class
   [Expand]CustomAttribute Class
   [Expand]CustomCriteriaManager Class
   [Expand]DataViewPropertiesCollection Class
   [Expand]DataViewProperty Class
   [Expand]DataViewRecord Class
   [Expand]DbTypeAttribute Class
    DefaultMembersPersistence Enumeration
   [Expand]DefaultMembersPersistenceAttribute Class
   [Expand]DeferredDeletionAttribute Class
   [Expand]DelayedAttribute Class
   [Expand]DisplayNameAttribute Class
   [Expand]ExplicitLoadingAttribute Class
   [Expand]ExplicitUnitOfWork Class
   [Expand]FetchOnlyAttribute Class
   [Expand]GetObjectStubsByKeyQuery Class
    GuidGenerationMode Enumeration
   [Expand]HiddenAttribute Class
   [Expand]ICustomCriteriaOperatorQueryable Interface
   [Expand]ICustomFunctionOperatorQueryable Interface
   [Expand]IDataLayer Interface
    IdentityMapBehavior Enumeration
   [Expand]IndexedAttribute Class
   [Expand]IndicesAttribute Class
   [Expand]IObjectLayer Interface
   [Expand]IObjectLayerAsync Interface
   [Expand]IObjectLayerEx Interface
   [Expand]IObjectLayerOnSession Interface
   [Expand]ISerializableObjectLayer Interface
   [Expand]ISerializableObjectLayerEx Interface
   [Expand]IXPModificationsStore Interface
   [Expand]IXPObject Interface
   [Expand]IXPSimpleObject Interface
   [Expand]KeyAttribute Class
   [Expand]LoadDataMemberOrderItem Structure
    LockingOption Enumeration
   [Expand]MapInheritanceAttribute Class
    MapInheritanceType Enumeration
   [Expand]MapToAttribute Class
   [Expand]MemberDesignTimeVisibilityAttribute Class
   [Expand]MergeCollisionBehaviorAttribute Class
   [Expand]NestedUnitOfWork Class
   [Expand]NoForeignKeyAttribute Class
   [Expand]NonPersistentAttribute Class
   [Expand]NullableAttribute Class
    NullableBehavior Enumeration
   [Expand]NullableBehaviorAttribute Class
   [Expand]NullValueAttribute Class
   [Expand]ObjectChangeEventArgs Class
    ObjectChangeEventHandler Delegate
    ObjectChangeReason Enumeration
   [Expand]ObjectManipulationEventArgs Class
    ObjectManipulationEventHandler Delegate
   [Expand]ObjectsByKeyQuery Class
   [Expand]ObjectsManipulationEventArgs Class
    ObjectsManipulationEventHandler Delegate
   [Expand]ObjectsQuery Class
   [Expand]ObjectStubsQuery Class
   [Expand]OptimisticLockingAttribute Class
    OptimisticLockingBehavior Enumeration
   [Expand]OptimisticLockingIgnoredAttribute Class
    OptimisticLockingReadBehavior Enumeration
   [Expand]OptimisticLockingReadBehaviorAttribute Class
    OptimisticLockingReadMergeBehavior Enumeration
   [Expand]PersistentAliasAttribute Class
   [Expand]PersistentAttribute Class
   [Expand]PersistentBase Class
    PersistentCriteriaEvaluationBehavior Enumeration
   [Expand]ResolveSessionEventArgs Class
    ResolveSessionEventHandler Delegate
   [Expand]SchemaInitEventArgs Class
    SchemaInitEventHandler Delegate
   [Expand]SerializableObjectLayer Class
   [Expand]SerializableObjectLayerClient Class
    ServerExceptionThrownAction Enumeration
   [Expand]ServerExceptionThrownEventArgs Class
    ServerExceptionThrownEventHandler Delegate
   [Expand]Session Class
   [Expand]SessionManipulationEventArgs Class
    SessionManipulationEventHandler Delegate
   [Expand]SessionObjectLayer Class
   [Expand]SessionOperationFailEventArgs Class
    SessionOperationFailEventHandler Delegate
   [Expand]SimpleDataLayer Class
   [Expand]SimpleObjectLayer Class
   [Expand]SizeAttribute Class
   [Expand]SkipCheckForFeedsAttribute Class
    SortDirection Enumeration
   [Expand]SortingCollection Class
   [Expand]StreamAttribute Class
   [Expand]ThreadSafeDataLayer Class
   [Expand]UnitOfWork Class
   [Expand]ValueConverterAttribute Class
   [Expand]ViewPropertiesCollection Class
   [Expand]ViewProperty Class
   [Expand]ViewRecord Class
   [Expand]VisibleAttribute Class
   [Expand]XPBaseCollection Class
   [Expand]XPBaseObject Class
   [Expand]XPClassInfoStub Class
   [Expand]XPCollection Class
   [Expand]XPCollection<T> Class
   [Expand]XPCollectionChangedEventArgs Class
    XPCollectionChangedEventHandler Delegate
    XPCollectionChangedType Enumeration
   [Expand]XPCursor Class
   [Expand]XPCustomObject Class
   [Expand]XPDataObject Class
   [Expand]XPDataView Class
   [Expand]XPDelayedProperty Class
   [Expand]XPDictionaryStub Class
   [Expand]XPInstantFeedbackSource Class
   [Expand]XPLiteObject Class
   [Expand]XPObject Class
   [Expand]XPObjectSource Class
   [Expand]XPObjectSourcePropertiesCollection Class
   [Expand]XPObjectSourceProperty Class
   [Expand]XPObjectSourceRecord Class
   [Expand]XPObjectStub Class
   [Expand]XPObjectStubCollection Class
   [Expand]XPObjectType Class
   [Expand]XpoDataSource Class
   [Expand]XpoDataSourceInsertedEventArgs Class
    XpoDataSourceInsertedEventHandler Delegate
   [Expand]XpoDefault Class
   [Expand]XPPageSelector Class
   [Expand]XPQuery<T> Class
   [Expand]XPQueryBase Class
   [Collapse]XPQueryExtensions Class
     XPQueryExtensions Members
    [Expand]XPQueryExtensions Methods
   [Expand]XPServerCollectionSource Class
   [Expand]XPView Class
   [Expand]XPWeakReference Class
  [Expand]DevExpress.Xpo.DB
  [Expand]DevExpress.Xpo.DB.Helpers
  [Expand]DevExpress.Xpo.Exceptions
  [Expand]DevExpress.Xpo.Helpers
  [Expand]DevExpress.Xpo.Metadata
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

XPQueryExtensions Members

Provides extension methods to work with XPQuery<T> objects.

Expanded Public Methods

Show: Inherited
  Name Description
Public methodStatic member AllAsync<T> Asynchronously checks whether all objects in a selection meet specific requirements.
Public methodStatic member AnyAsync<T> Overloaded. Asynchronously checks whether any objects exist in a selection.
Public methodStatic member AverageAsync Overloaded. Asynchronously calculates an average of objects' specific Int32 fields, for a query.
Public methodStatic member AverageAsync<T> Overloaded. Asynchronously calculates an average of objects' specific Double fields for a query. Uses a lambda expression to obtain values.
Public methodStatic member CachedExpression<TSource, TArg1, TArg2, TArg3, TArg4, TArg5, TResult> For internal use.
Public methodStatic member CachedExpression<TSource, TArg1, TArg2, TArg3, TArg4, TResult> For internal use.
Public methodStatic member CachedExpression<TSource, TArg1, TArg2, TArg3, TResult> For internal use.
Public methodStatic member CachedExpression<TSource, TArg1, TArg2, TResult> For internal use.
Public methodStatic member CachedExpression<TSource, TArg1, TResult> For internal use.
Public methodStatic member CachedExpression<TSource, TResult> For internal use.
Public methodStatic member ContainsAsync<T> Asynchronously checks whether a specific object exists in a selection.
Public methodStatic member CountAsync<T> Overloaded. Asynchronously counts the number of objects that meet specific requirements in a specified selection.
Public methodStatic member ElementAtAsync<T> Asynchronously gets an object that has a specific index in a selection.
Public methodStatic member ElementAtOrDefaultAsync<T> Asynchronously gets an object that has a specific index in a selection. If the index is not valid, returns a default value for <T>.
Public methodStatic member EnumerateAsync<T> Overloaded. Asynchronously enumerates a specified query and notifies upon completion.
Public method Equals Determines whether the specified System.Object is equal to the current System.Object. (Inherited from System.Object)
Public methodStatic member Equals Determines whether the specified System.Object instances are considered equal. (Inherited from System.Object)
Public methodStatic member FirstAsync<T> Overloaded. Asynchronously gets the first object that meets specified requirements in a selection. Throws an exception for empty selections.
Public methodStatic member FirstOrDefaultAsync<T> Overloaded. Asynchronously gets the first object in a selection. If the selection is empty, returns a default value for <T>.
Public method GetHashCode Serves as a hash function for a particular type. System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from System.Object)
Public method GetType Gets the System.Type of the current instance. (Inherited from System.Object)
Public methodStatic member LastAsync<T> Overloaded. Asynchronously gets the last object that meets specified requirements in a selection. Throws an exception for empty selections.
Public methodStatic member LastOrDefaultAsync<T> Overloaded. Asynchronously gets the last object in a selection. If the selection is empty, returns a default value for <T>.
Public methodStatic member LongCountAsync<T> Overloaded. Asynchronously counts the number of objects in a selection.
Public methodStatic member MaxAsync<T, TResult> Asynchronously gets the maximum value from a specified query. Uses a lambda expression to obtain values.
Public methodStatic member MaxAsync<T> Asynchronously gets the maximum value from a specified query.
Public methodStatic member MinAsync<T, TResult> Asynchronously gets the minimum value from a specified query. Uses a lambda expression to obtain values.
Public methodStatic member MinAsync<T> Asynchronously gets the minimum value from a specified query.
Public methodStatic member Query<T> Overloaded. Creates a new XPQuery<T> instance from a specified session's scope.
Public methodStatic member QueryInTransaction<T> Creates a new XPQuery<T> instance with the InTransaction (XPQuery<T>.InTransaction) mode enabled, from a specified session's scope.
Public methodStatic member ReferenceEquals Determines whether the specified System.Object instances are the same instance. (Inherited from System.Object)
Public methodStatic member SingleAsync<T> Overloaded. Asynchronously gets the object from a selection if only one object in the selection meets the specified requirements. Otherwise, throws an exception.
Public methodStatic member SingleOrDefaultAsync<T> Overloaded. Asynchronously gets the only object in a selection. If the selection is empty, returns a default value for <T>. If the selection has more than one element, throws an exception.
Public methodStatic member SumAsync Overloaded. Asynchronously calculates a sum of objects' specific nullable Int64 fields for a query.
Public methodStatic member SumAsync<T> Overloaded. Asynchronously calculates a sum of objects' specific Decimal fields for a query. Uses a lambda expression to obtain values.
Public methodStatic member ToArrayAsync<T> Asynchronously enumerates all objects in a query and saves them to an array.
Public methodStatic member ToDictionaryAsync<T, TKey, TElement> Overloaded. Asynchronously enumerates a query and uses a key selector, an element selector, and a comparer to construct a Dictionary<TKey,TValue>.
Public methodStatic member ToDictionaryAsync<T, TKey> Overloaded. Asynchronously enumerates a query and uses a key selector to construct a Dictionary<TKey,TValue>.
Public methodStatic member ToListAsync<T> Asynchronously enumerates all elements in a query and saves them to a list.
Public methodStatic member ToLookupAsync<T, TKey, TElement> Overloaded. Asynchronously enumerates a query and uses a key selector and an element selector to construct a Lookup<TKey,TElement>.
Public methodStatic member ToLookupAsync<T, TKey> Overloaded. Asynchronously enumerates a query and uses a key selector to construct a Lookup<TKey,TElement>.
Public method ToString Returns a System.String that represents the current System.Object. (Inherited from System.Object)
Top

Expanded See Also

Is this topic helpful?​​​​​​​