Class WhereFilter
Defines the members to build filter criteria.
Inherited Members
Namespace: Syncfusion.Blazor.Data
Assembly: Syncfusion.Blazor.dll
Syntax
public class WhereFilter
Constructors
WhereFilter()
Declaration
public WhereFilter()
Properties
Condition
Provides the complex filter merge condition.
Declaration
[JsonPropertyName("condition")]
public string Condition { get; set; }
Property Value
| Type |
|---|
| string |
Field
Specifies the field name.
Declaration
[JsonPropertyName("field")]
public string Field { get; set; }
Property Value
| Type |
|---|
| string |
IgnoreAccent
Specifies that ignore accent/diacritic letters while searching.
Declaration
[JsonPropertyName("ignoreAccent")]
public bool IgnoreAccent { get; set; }
Property Value
| Type |
|---|
| bool |
IgnoreCase
Specifies that filter should be incasesensitive.
Declaration
[JsonPropertyName("ignoreCase")]
public bool IgnoreCase { get; set; }
Property Value
| Type |
|---|
| bool |
IsComplex
When true it specifies that the filter criteria is a complex one.
Declaration
[JsonPropertyName("isComplex")]
public bool IsComplex { get; set; }
Property Value
| Type |
|---|
| bool |
Operator
Gets the filter operator.
Declaration
[JsonPropertyName("operator")]
public string Operator { get; set; }
Property Value
| Type |
|---|
| string |
predicates
Specifies the collection filter criteria.
Declaration
[JsonPropertyName("predicates")]
public List<WhereFilter> predicates { get; set; }
Property Value
| Type |
|---|
| List<WhereFilter> |
value
Specifies the filter value.
Declaration
[JsonPropertyName("value")]
public object value { get; set; }
Property Value
| Type |
|---|
| object |
Methods
And(WhereFilter)
Merge the give predicate using And condition.
Declaration
public WhereFilter And(WhereFilter predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| WhereFilter | predicate | Predicate to be merged. |
Returns
| Type | Description |
|---|---|
| WhereFilter | WhereFilter. |
And(List<WhereFilter>)
Merge the give collection of predicates using And condition.
Declaration
public static WhereFilter And(List<WhereFilter> predicates)
Parameters
| Type | Name | Description |
|---|---|---|
| List<WhereFilter> | predicates | List of predicates. |
Returns
| Type | Description |
|---|---|
| WhereFilter | WhereFilter. |
And(string, string, object, bool, bool)
Merge the give predicate using And condition.
Declaration
public WhereFilter And(string fieldName, string @operator = null, object value = null, bool ignoreCase = false, bool ignoreAccent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Specifies the field name. |
| string | operator | Specifies the filter operator. |
| object | value | Specifies the filter value. |
| bool | ignoreCase | Performs incasesensitive filtering. |
| bool | ignoreAccent | Ignores accent/diacritic letters while filtering. |
Returns
| Type |
|---|
| WhereFilter |
Or(WhereFilter)
Merge the give predicate using Or condition.
Declaration
public WhereFilter Or(WhereFilter predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| WhereFilter | predicate | Predicate to be merged. |
Returns
| Type | Description |
|---|---|
| WhereFilter | WhereFilter. |
Or(List<WhereFilter>)
Merge the give collection of predicates using Or condition.
Declaration
public static WhereFilter Or(List<WhereFilter> predicates)
Parameters
| Type | Name | Description |
|---|---|---|
| List<WhereFilter> | predicates | List of predicates. |
Returns
| Type | Description |
|---|---|
| WhereFilter | WhereFilter. |
Or(string, string, object, bool, bool)
Merge the give predicate using Or condition.
Declaration
public WhereFilter Or(string fieldName, string @operator = null, object value = null, bool ignoreCase = false, bool ignoreAccent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | Specifies the field name. |
| string | operator | Specifies the filter operator. |
| object | value | Specifies the filter value. |
| bool | ignoreCase | Performs incasesensitive filtering. |
| bool | ignoreAccent | Ignores accent/diacritic letters while filtering. |
Returns
| Type |
|---|
| WhereFilter |