RelationalQueryableMethodTranslatingExpressionVisitor.TranslateTake Method

Definition

Translates Take<TSource>(IQueryable<TSource>, Int32) method over the given source.

protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateTake (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.Expression count);
protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateTake (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.Expression count);
override this.TranslateTake : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected Overrides Function TranslateTake (source As ShapedQueryExpression, count As Expression) As ShapedQueryExpression

Parameters

source
ShapedQueryExpression

The shaped query on which the operator is applied.

count
Expression

The count supplied in the call.

Returns

The shaped query after translation.

Applies to