EasyObjects.NET Programmers Reference

DynamicQuery.AddGroupBy Method (SchemaItem)

Adds a GROUP BY clause to the query using the FieldName of the SchemaItem. If you want to order the data by two columns you will need to call this method twice.

public virtual void AddGroupBy(
   SchemaItem item
);

Parameters

item
A SchemaItem for the column you want to sort by

Example

VB.NET

emps.Query.AddOrderBy(EmployeesSchema.LastName)
emps.Query.AddOrderBy(EmployeesSchema.FirstName)
C#
emps.Query.AddOrderBy(EmployeesSchema.LastName);
emps.Query.AddOrderBy(EmployeesSchema.FirstName);

See Also

DynamicQuery Class | NCI.EasyObjects Namespace | DynamicQuery.AddGroupBy Overload List