Skip to content

GroupBy class

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

A field the rows a list request matches are grouped by, for the aggregates of each group, see GroupBy.

public class GroupBy

Public Members

name description
GroupBy() Creates an empty GroupBy object
GroupBy(…) Creates a GroupBy object for the specified field name.
Descending { get; set; } Gets/sets whether the groups are in descending order of the field
Field { get; set; } Gets/sets the field name
Interval { get; set; } Gets/sets the interval the values of a date field are grouped by, e.g. the months. The key of a group is then the start of its interval, see Key. It can only be used with a date field, and the rows are not grouped at all otherwise.

See Also