Table of Contents

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

T

Value 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

isNull bool?

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

equals T?

Matches values equal to this one.

notEquals T?

Matches values not equal to this one.

in IEnumerable<T>

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

notIn IEnumerable<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>