ObjectQuery<T>.GroupBy(String, String, ObjectParameter[]) Method

Definition

Groups the query results by the specified criteria.

public System.Data.Entity.Core.Objects.ObjectQuery<System.Data.Common.DbDataRecord> GroupBy (string keys, string projection, params System.Data.Entity.Core.Objects.ObjectParameter[] parameters);
member this.GroupBy : string * string * System.Data.Entity.Core.Objects.ObjectParameter[] -> System.Data.Entity.Core.Objects.ObjectQuery<System.Data.Common.DbDataRecord>
Public Function GroupBy (keys As String, projection As String, ParamArray parameters As ObjectParameter()) As ObjectQuery(Of DbDataRecord)

Parameters

keys
String

The key columns by which to group the results.

projection
String

The list of selected properties that defines the projection.

parameters
ObjectParameter[]

Zero or more parameters that are used in this method.

Returns

A new ObjectQuery<T> instance of type DbDataRecord that is equivalent to the original instance with GROUP BY applied.

Exceptions

The query parameter is null or an empty string or the projection parameter is null or an empty string.

Applies to