ObjectQuery<T>.GroupBy(String, String, ObjectParameter[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework