Class EquatableFilterBase<T>
- Namespace
- Magicalizer.Filters.Abstractions
- Assembly
- Magicalizer.Filters.Abstractions.dll
Base of the filters of value properties that are compared for equality only (e.g. GuidFilter): the null, equality and list conditions. Only the conditions that are set are applied.
public abstract class EquatableFilterBase<T> : ValueFilterBase<T>, IFilter where T : struct
Type Parameters
TValue type.
- Inheritance
-
EquatableFilterBase<T>
- Implements
- Derived
- Inherited Members
Constructors
EquatableFilterBase(bool?, T?, T?, IEnumerable<T>?, IEnumerable<T>?)
Creates a filter with the given conditions.
protected EquatableFilterBase(bool? isNull = null, T? equals = null, T? notEquals = null, IEnumerable<T>? @in = null, IEnumerable<T>? notIn = null)
Parameters
isNullbool?Matches null values if
true, non-null ones iffalse.equalsT?Matches values equal to this one.
notEqualsT?Matches values not equal to this one.
inIEnumerable<T>Matches values equal to any of these (the query parameter is repeated, e.g. "id.in=1&id.in=2").
notInIEnumerable<T>Matches values not equal to any of these (the query parameter is repeated, e.g. "id.notin=1&id.notin=2").
Properties
In
Matches values equal to any of these (the query parameter is repeated, e.g. "id.in=1&id.in=2").
public IEnumerable<T>? In { get; set; }
Property Value
- IEnumerable<T>
NotEquals
Matches values not equal to this one.
public T? NotEquals { get; set; }
Property Value
- T?
NotIn
Matches values not equal to any of these (the query parameter is repeated, e.g. "id.notin=1&id.notin=2").
public IEnumerable<T>? NotIn { get; set; }
Property Value
- IEnumerable<T>