Class QueryFilterAttribute
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
-
objectQueryFilterAttribute
- Implements
- Inherited Members
- Extension Methods
Properties
FilterFunc
Filter function of type Func<T1, T2, TResult>, where
- - T1 and TResult are IQueryable<T>
- - T2 is IDataContext
public Delegate? FilterFunc { get; set; }
Property Value
FilterLambda
Filter LambdaExpression.
Expression<Func<TEntity, IDataContext, bool>>
For example (e, db) => e.IsDeleted == false "/>
public LambdaExpression? FilterLambda { get; set; }
Property Value
Methods
GetObjectID()
Returns mapping attribute id, based on all attribute options.
public override string GetObjectID()