Table of Contents

Class TakeFinder

Namespace
Breeze.Core
Assembly
Breeze.Core.dll

Sets MinTake to the minimum Take() value in the queryable Expression

public class TakeFinder : ExpressionVisitor
Inheritance
TakeFinder
Inherited Members

Properties

MinTake

The smallest Take() found so far, or null if the expression contains none.

public int? MinTake { get; }

Property Value

int?

Methods

VisitMethodCall(MethodCallExpression)

Records the argument of every Queryable.Take call, keeping the smallest.

protected override Expression VisitMethodCall(MethodCallExpression node)

Parameters

node MethodCallExpression

The call being visited.

Returns

Expression

The node, unchanged - this visitor only observes.