Table of Contents

Class QueryFilterExtensions

Namespace
MudBlazor
Assembly
MudBlazor.dll

Provides extension methods for filtering queryable data sources using filter definitions.

public static class QueryFilterExtensions
Inheritance
QueryFilterExtensions
Inherited Members

Remarks

This class contains methods that extend IQueryable<T> with filtering capabilities based on a collection of IFilterDefinition<T> instances. These extensions allow for dynamic and customizable filtering of data.

Methods

Where<T>(IQueryable<T>, IEnumerable<IFilterDefinition<T>>, DataGridFilterCaseSensitivity)

Filters a sequence of values based on a collection of filter definitions.

public static IQueryable<T> Where<T>(this IQueryable<T> source, IEnumerable<IFilterDefinition<T>> filterDefinitions, DataGridFilterCaseSensitivity caseSensitivity = DataGridFilterCaseSensitivity.Ignore)

Parameters

source IQueryable<T>

An IQueryable<T> to filter.

filterDefinitions IEnumerable<IFilterDefinition<T>>

A collection of IFilterDefinition<T> to apply.

caseSensitivity DataGridFilterCaseSensitivity

The filtering case sensitivity. Defaults to Ignore for best compatibility with database providers.

Returns

IQueryable<T>

An IQueryable<T> that contains elements from the input sequence that satisfy the filter definitions.

Type Parameters

T

The type of the elements of source.