IConventionEntityTypeBuilder.CanSetQueryFilter Method

Definition

Returns a value indicating whether the given query filter can be set from the current configuration source.

public bool CanSetQueryFilter (System.Linq.Expressions.LambdaExpression filter, bool fromDataAnnotation = false);
public bool CanSetQueryFilter (System.Linq.Expressions.LambdaExpression? filter, bool fromDataAnnotation = false);
abstract member CanSetQueryFilter : System.Linq.Expressions.LambdaExpression * bool -> bool
Public Function CanSetQueryFilter (filter As LambdaExpression, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

filter
LambdaExpression

The LINQ predicate expression.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given query filter can be set.

Applies to