Skip to content

AggregateType enumeration

namespace: Serenity.Services   assembly: Serenity.Net.Services

The kind of a value that is calculated from the rows of a list request, see AggregateBy. The values of the ones that are also in SummaryType are the same.

public enum AggregateType

Values

name value description
Count 0 The number of the rows, or of the rows whose field is not null when a field is given.
Sum 1 The sum of the values of the field.
Avg 2 The average of the values of the field, without the null ones.
Min 3 The smallest value of the field.
Max 4 The largest value of the field.
DistinctCount 5 The number of the different values of the field, without null.

See Also