Aggregate Enum
Enumerates aggregate functions.
Namespace: DevExpress.Data.Filtering
Assembly: DevExpress.Data.v18.1.dll
Declaration
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. |
Related API Members
The following properties accept/return Aggregate values:
Library | Related API Members |
---|---|
Cross-Platform Class Library | AggregateOperand.AggregateType |
JoinOperand.AggregateType | |
eXpressApp Framework | IRuleSupportsCollectionAggregatesProperties.TargetCollectionAggregate |
RuleRangeAttribute.TargetCollectionAggregate | |
RuleRangeProperties.TargetCollectionAggregate | |
RuleValueComparisonAttribute.TargetCollectionAggregate | |
RuleValueComparisonProperties.TargetCollectionAggregate |
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.
Related GitHub Examples
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.