다음을 통해 공유


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 집계 열 이름 또는 집계가 포함됩니다.

키와 집계가 모두 비어 있거나 잘못되었거나 중복된 열 이름이 지정되었습니다.

적용 대상