Table of Contents

Class EntityQueryFilter

Namespace
LinqToDB.Mapping
Assembly
linq2db.dll

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
object
EntityQueryFilter
Extension Methods

Constructors

EntityQueryFilter(string, LambdaExpression?, Delegate?)

Creates a new filter descriptor.

public EntityQueryFilter(string filterKey, LambdaExpression? filterLambda, Delegate? filterFunc)

Parameters

filterKey string

Filter identifier. An empty string addresses the default (anonymous) slot.

filterLambda LambdaExpression

Predicate-style filter Expression<Func<TEntity, TDataContext, bool>>, or null.

filterFunc Delegate

Function-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

Delegate

FilterKey

Filter identifier. The empty string identifies the default (anonymous) filter slot populated by the keyless HasQueryFilter overloads.

public string FilterKey { get; }

Property Value

string

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; }

Property Value

LambdaExpression