[]
Filters the data using specified filter parameters.
public static Task FilterAsync<T>(this IDataCollection<T> dataCollection, Expression<Func<T, object>> filterPath, FilterOperation filterOperation, object value) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
Expression<Func<T, object>> | filterPath | The path of the data item to which the filter will be applied. |
FilterOperation | filterOperation | The filter operation. |
object | value | The value used in the expression. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Filters the data using specified filter parameters.
public static Task FilterAsync<T>(this IDataCollection<T> dataCollection, string filterPath, FilterOperation filterOperation, object value) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
string | filterPath | The path of the data item to which the filter will be applied. |
FilterOperation | filterOperation | The filter operation. |
object | value | The value used in the expression. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Filters the data from a query string.
public static Task FilterAsync<T>(this IDataCollection<T> dataCollection, string query, bool treatSpacesAsAndOperator = true, bool matchNumbers = true, bool matchCase = false, bool matchWholeWord = false) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
string | query | The query string to be filtered. |
bool | treatSpacesAsAndOperator | if set to |
bool | matchNumbers | if set to |
bool | matchCase | If set to |
bool | matchWholeWord | If set to |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Filters the data from a query string.
public static Task FilterAsync<T>(this IDataCollection<T> dataCollection, Func<object, bool> predicate) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
Func<object, bool> | predicate | The predicate which will filter the collection. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Filters the data using specified filter expression.
public static Task FilterAsync<T>(this IDataCollection<T> dataCollection, FilterExpression? filterExpression) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
FilterExpression | filterExpression | The filter expression applied to the data. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Filters the data using specified filter expression.
public static Task FilterAsync<T>(this IDataCollection<T> dataCollection, FilterExpression? filterExpression, CancellationToken cancellationToken = default) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
FilterExpression | filterExpression | The filter expression applied to the data. |
CancellationToken | cancellationToken | The cancellation token. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |