Partilhar via


QueryableMethodTranslatingExpressionVisitor.TranslateOrderBy Método

Definição

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateOrderBy (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression keySelector, bool ascending);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateOrderBy (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression keySelector, bool ascending);
abstract member TranslateOrderBy : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression * bool -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateOrderBy (source As ShapedQueryExpression, keySelector As LambdaExpression, ascending As Boolean) As ShapedQueryExpression

Parâmetros

source
ShapedQueryExpression

A consulta em forma na qual o operador é aplicado.

keySelector
LambdaExpression

O seletor de chave fornecido na chamada.

ascending
Boolean

Um valor que indica se a ordenação é crescente ou não.

Retornos

A consulta em forma após a tradução.

Aplica-se a