共用方式為


QueryableMethodTranslatingExpressionVisitor.TranslateGroupBy 方法

定義

GroupBy<TSource,TKey>(IQueryable<TSource>, Expression<Func<TSource,TKey>>)在指定的來源上轉譯方法和其他多載。

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateGroupBy (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression keySelector, System.Linq.Expressions.LambdaExpression elementSelector, System.Linq.Expressions.LambdaExpression resultSelector);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateGroupBy (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression keySelector, System.Linq.Expressions.LambdaExpression? elementSelector, System.Linq.Expressions.LambdaExpression? resultSelector);
abstract member TranslateGroupBy : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression * System.Linq.Expressions.LambdaExpression * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateGroupBy (source As ShapedQueryExpression, keySelector As LambdaExpression, elementSelector As LambdaExpression, resultSelector As LambdaExpression) As ShapedQueryExpression

參數

source
ShapedQueryExpression

套用運算子的成形查詢。

keySelector
LambdaExpression

呼叫中提供的金鑰選取器。

elementSelector
LambdaExpression

呼叫中提供的專案選取器。

resultSelector
LambdaExpression

呼叫中提供的結果選取器。

傳回

翻譯後的成形查詢。

適用於