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

RuleValueComparisonProperties.TargetCollectionAggregate Property

Specifies the aggregate function to be checked by the Validation Rule, if the rule is applied to a collection property.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v18.2.dll

Declaration

[RulePropertiesIndex(2)]
public Aggregate? TargetCollectionAggregate { get; set; }

Property Value

Type Description
Nullable<Aggregate>

A Nullable<Aggregate> object which specifies the aggregate function to be checked by the Validation Rule.

Available values:

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. The collection must contain no more than one object.

See Also