Table of Contents

Class IntegerFilter

Namespace
Magicalizer.Filters.Abstractions
Assembly
Magicalizer.Filters.Abstractions.dll

Filter of int properties. Only the conditions that are set are applied.

public class IntegerFilter : ComparableFilterBase<int>, IFilter
Inheritance
IntegerFilter
Implements
Inherited Members

Constructors

IntegerFilter()

Creates an empty filter.

public IntegerFilter()

IntegerFilter(bool?, int?, int?, int?, int?, IEnumerable<int>?, IEnumerable<int>?)

Creates a filter with the given conditions.

public IntegerFilter(bool? isNull = null, int? equals = null, int? notEquals = null, int? from = null, int? to = null, IEnumerable<int>? @in = null, IEnumerable<int>? notIn = null)

Parameters

isNull bool?

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

equals int?

Matches values equal to this one.

notEquals int?

Matches values not equal to this one.

from int?

Matches values greater than or equal to this one.

to int?

Matches values less than or equal to this one.

in IEnumerable<int>

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

notIn IEnumerable<int>

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