Class QueryFilter<TModel, TCriterion>
Allow for the expression of a query filter with linq expressions.
public class QueryFilter<TModel, TCriterion> : IPostgrestQueryFilter
Type Parameters
TModel
TCriterion
- Inheritance
-
QueryFilter<TModel, TCriterion>
- Implements
- Inherited Members
Constructors
QueryFilter(Expression<Func<TModel, object>>, Operator, TCriterion?)
Allows the creation of a Query Filter using a LINQ expression.
public QueryFilter(Expression<Func<TModel, object>> predicate, Constants.Operator op, TCriterion? criterion)
Parameters
predicate
Expression<Func<TModel, object>>op
Constants.Operatorcriterion
TCriterion
Exceptions
Properties
Criteria
public object? Criteria { get; }
Property Value
Op
public Constants.Operator Op { get; }
Property Value
Property
public string? Property { get; }