Interface IQueryFilterMetadata
A query filter declared for an entity type: the optional key and the predicate lambda that nextorm applies to every query in which the entity participates.
public interface IQueryFilterMetadata
- Extension Methods
Properties
Func
The builder-function form of the filter, or null for a predicate filter. The
value is the function declaration (a Func<EntityBuilder<T>, IDataContext,
EntityBuilder<T>>), not a ready SQL predicate: it is invoked once while the plan is
built to produce a predicate, and only the predicate is merged into the query. The default
implementation returns null so existing external implementations keep compiling.
Delegate? Func { get; }
Property Value
Key
The filter key. A filter declared without a key reports AnonymousKey; a named filter reports the key it was registered with.
string Key { get; }
Property Value
Lambda
The filter predicate. Its first parameter is the entity; an optional second parameter is the executing IDataContext, so the filter can read per-context state such as a tenant identifier. null for a builder-function filter.
LambdaExpression? Lambda { get; }