Skip to main content
A newer version of this page is available. .

Aggregate Enum

Enumerates aggregate functions.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v18.1.dll

Declaration

public enum Aggregate

Members

Name Description
Exists

Determines whether the object exists in the collection.

Count

Returns the number of objects in the collection.

Max

Returns the maximum expression value in the collection.

Min

Returns the minimum expression value in the collection.

Avg

Evaluates the average of the values in the collection.

Sum

Returns the sum of all the expression values in the collection.

Single

Returns a single object from the collection.

Remarks

The values listed in this enumeration are used to set the AggregateOperand.AggregateType property.

Note

  • AggregateOperand does not support nested expressions and complex property paths like “Max(Document.<PersonID>LastName)”. Only names of owned properties are supported: “Max(Document)”.

  • AggregateOperand may produce null instead of zero for an empty collection on a server side.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Aggregate enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also