RelationalQueryableMethodTranslatingExpressionVisitor.TranslateThenBy 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.
Translates ThenBy<TSource,TKey>(IOrderedQueryable<TSource>, Expression<Func<TSource,TKey>>) or ThenByDescending<TSource,TKey>(IOrderedQueryable<TSource>, Expression<Func<TSource,TKey>>) method over the given source.
protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateThenBy (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression keySelector, bool ascending);
protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateThenBy (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression keySelector, bool ascending);
override this.TranslateThenBy : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression * bool -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected Overrides Function TranslateThenBy (source As ShapedQueryExpression, keySelector As LambdaExpression, ascending As Boolean) As ShapedQueryExpression
Parameters
- source
- ShapedQueryExpression
The shaped query on which the operator is applied.
- keySelector
- LambdaExpression
The key selector supplied in the call.
- ascending
- Boolean
A value indicating whether the ordering is ascending or not.
Returns
The shaped query after translation.
Applies to
Entity Framework