Skip to content

Filters

Filters configuration:

.Filters(f =>
{
    f.Add(x => x.Id).GreaterThanOrEqual(1);
    f.Add(x => x.Name).Contains("Jon");
})

Add

Add the specified property for filter.

.Add(x => x.Id)

Equal

Equals the specified value.

.Equal(1)

NotEqual

Nots the equal.

.NotEqual(1)

GreaterThan

Greaters the than.

.GreaterThan(1)

Contains

Determines whether this instance contains the object.

.Contains("Jon")

EndsWith

Endses the with.

.EndsWith("Snow")

GreaterThanOrEqual

Greaters the than or equal.

.GreaterThanOrEqual(5)

LessThan

Lesses the than.

.LessThan(4)

LessThanOrEqual

Lesses the than or equal.

.LessThanOrEqual(5)

StartsWith

Startses the with.

.StartsWith("Jon")