Table of Contents

Class QueryFilterAttribute

Namespace
LinqToDB.Mapping
Assembly
linq2db.dll

Contains reference to filter function defined by HasQueryFilter(Expression<Func<TEntity, IDataContext, bool>>)

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true)]
public class QueryFilterAttribute : MappingAttribute, _Attribute
Inheritance
object
QueryFilterAttribute
Implements
Inherited Members
Extension Methods

Properties

FilterFunc

Filter function of type Func<T1, T2, TResult>, where

public Delegate? FilterFunc { get; set; }

Property Value

Delegate

FilterLambda

Filter LambdaExpression.

Expression<Func<TEntity, IDataContext, bool>>

For example (e, db) => e.IsDeleted == false "/>

public LambdaExpression? FilterLambda { get; set; }

Property Value

LambdaExpression

Methods

GetObjectID()

Returns mapping attribute id, based on all attribute options.

public override string GetObjectID()

Returns

string