Table of Contents

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

isNull bool?

Matches null values if true, non-null ones if false.

equals short?

Matches values equal to this one.

notEquals short?

Matches values not equal to this one.

from short?

Matches values greater than or equal to this one.

to short?

Matches values less than or equal to this one.

in IEnumerable<short>

Matches values equal to any of these (the query parameter is repeated, e.g. "id.in=1&id.in=2").

notIn IEnumerable<short>

Matches values not equal to any of these (the query parameter is repeated, e.g. "id.notin=1&id.notin=2").