Class ShortFilter
- Namespace
- Magicalizer.Filters.Abstractions
- Assembly
- Magicalizer.Filters.Abstractions.dll
Filter of short properties. Only the conditions that are set are applied.
public class ShortFilter : ComparableFilterBase<short>, IFilter
- Inheritance
-
ShortFilter
- Implements
- Inherited Members
Constructors
ShortFilter()
Creates an empty filter.
public ShortFilter()
ShortFilter(bool?, short?, short?, short?, short?, IEnumerable<short>?, IEnumerable<short>?)
Creates a filter with the given conditions.
public ShortFilter(bool? isNull = null, short? equals = null, short? notEquals = null, short? from = null, short? to = null, IEnumerable<short>? @in = null, IEnumerable<short>? notIn = null)
Parameters
isNullbool?Matches null values if
true, non-null ones iffalse.equalsshort?Matches values equal to this one.
notEqualsshort?Matches values not equal to this one.
fromshort?Matches values greater than or equal to this one.
toshort?Matches values less than or equal to this one.
inIEnumerable<short>Matches values equal to any of these (the query parameter is repeated, e.g. "id.in=1&id.in=2").
notInIEnumerable<short>Matches values not equal to any of these (the query parameter is repeated, e.g. "id.notin=1&id.notin=2").