Skip to content

AggregateBy class

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

A value to calculate from all the rows a list request matches, and from the rows of each of its groups, e.g. the sum of a field. It is in the response under the key of its type, then the name of its field, see Values.

public class AggregateBy

Public Members

name description
AggregateBy() Creates an empty AggregateBy object
AggregateBy(…) Creates an AggregateBy object for the specified field name and type.
Field { get; set; } Gets/sets the field name. It is only optional for Count, which is the number of the rows without one, like Count.
Type { get; set; } Gets/sets the type of the aggregate

See Also