Class EntityQueryFilter
Describes a single named query filter declared on an entity via one of the HasQueryFilter(string, Expression<Func<TEntity, IDataContext, bool>>?) overloads (or the keyless equivalents that target the default slot).
public sealed class EntityQueryFilter
- Inheritance
-
objectEntityQueryFilter
- Extension Methods
Constructors
EntityQueryFilter(string, LambdaExpression?, Delegate?)
Creates a new filter descriptor.
public EntityQueryFilter(string filterKey, LambdaExpression? filterLambda, Delegate? filterFunc)
Parameters
filterKeystringFilter identifier. An empty string addresses the default (anonymous) slot.
filterLambdaLambdaExpressionPredicate-style filter
Expression<Func<TEntity, TDataContext, bool>>, or null.filterFuncDelegateFunction-style filter
Func<IQueryable<TEntity>, TDataContext, IQueryable<TEntity>>, or null.
Properties
FilterFunc
Function-style filter of shape
Func<IQueryable<TEntity>, TDataContext, IQueryable<TEntity>>. null
when the entry uses the FilterLambda form instead.
public Delegate? FilterFunc { get; }
Property Value
FilterKey
Filter identifier. The empty string identifies the default (anonymous) filter slot populated by the
keyless HasQueryFilter overloads.
public string FilterKey { get; }
Property Value
FilterLambda
Predicate-style filter expression of shape
Expression<Func<TEntity, TDataContext, bool>>. null when the entry uses
the FilterFunc form instead.
public LambdaExpression? FilterLambda { get; }