次の方法で共有


DbExpressionBuilder.GroupBy メソッド

定義

指定されたグループ キーに従って入力セットの要素をグループ化し、指定された集約を適用する新しい DbGroupByExpression を作成します。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public static System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression GroupBy (this System.Data.Entity.Core.Common.CommandTrees.DbGroupExpressionBinding input, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Data.Entity.Core.Common.CommandTrees.DbExpression>> keys, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Data.Entity.Core.Common.CommandTrees.DbAggregate>> aggregates);
static member GroupBy : System.Data.Entity.Core.Common.CommandTrees.DbGroupExpressionBinding * seq<System.Collections.Generic.KeyValuePair<string, System.Data.Entity.Core.Common.CommandTrees.DbExpression>> * seq<System.Collections.Generic.KeyValuePair<string, System.Data.Entity.Core.Common.CommandTrees.DbAggregate>> -> System.Data.Entity.Core.Common.CommandTrees.DbGroupByExpression
<Extension()>
Public Function GroupBy (input As DbGroupExpressionBinding, keys As IEnumerable(Of KeyValuePair(Of String, DbExpression)), aggregates As IEnumerable(Of KeyValuePair(Of String, DbAggregate))) As DbGroupByExpression

パラメーター

input
DbGroupExpressionBinding

入力セットを指定する DbGroupExpressionBinding

keys
IEnumerable<KeyValuePair<String,DbExpression>>

グループ化列を定義する文字列/式ペアのリスト。

aggregates
IEnumerable<KeyValuePair<String,DbAggregate>>

適用する集計を指定する式のリスト。

戻り値

指定された入力セット、グループ化キー、および集計を持つ新しい DbGroupByExpression。

属性

例外

入力、キー、または集計が null、キーに null 列キーまたは式が含まれているか、集計に null 集計列名または集計が含まれています。

キーと集計の両方が空であるか、無効な列名または重複する列名が指定されています。

適用対象