Class WhereFilter
Defines the members to build filter criteria.
Inheritance
Namespace: Syncfusion.Blazor.Data
Assembly: Syncfusion.Blazor.dll
Syntax
public class WhereFilter : Object
Constructors
WhereFilter()
Declaration
public WhereFilter()
Properties
Condition
Provides the complex filter merge condition.
Declaration
public string Condition { get; set; }
Property Value
Type |
---|
System.String |
Field
Specifies the field name.
Declaration
public string Field { get; set; }
Property Value
Type |
---|
System.String |
IgnoreAccent
Specifies that ignore accent/diacritic letters while searching.
Declaration
public bool IgnoreAccent { get; set; }
Property Value
Type |
---|
System.Boolean |
IgnoreCase
Specifies that filter should be incasesensitive.
Declaration
public bool IgnoreCase { get; set; }
Property Value
Type |
---|
System.Boolean |
IsComplex
When true it specifies that the filter criteria is a complex one.
Declaration
public bool IsComplex { get; set; }
Property Value
Type |
---|
System.Boolean |
Operator
Gets the filter operator.
Declaration
public string Operator { get; set; }
Property Value
Type |
---|
System.String |
predicates
Specifies the collection filter criteria.
Declaration
public List<WhereFilter> predicates { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<WhereFilter> |
value
Specifies the filter value.
Declaration
public object value { get; set; }
Property Value
Type |
---|
System.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 |
---|---|---|
System.Collections.Generic.List<WhereFilter> | predicates | List of predicates. |
Returns
Type | Description |
---|---|
WhereFilter | WhereFilter. |
And(String, String, Object, Boolean, Boolean)
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 |
---|---|---|
System.String | fieldName | Specifies the field name. |
System.String | operator | Specifies the filter operator. |
System.Object | value | Specifies the filter value. |
System.Boolean | ignoreCase | Performs incasesensitive filtering. |
System.Boolean | 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 |
---|---|---|
System.Collections.Generic.List<WhereFilter> | predicates | List of predicates. |
Returns
Type | Description |
---|---|
WhereFilter | WhereFilter. |
Or(String, String, Object, Boolean, Boolean)
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 |
---|---|---|
System.String | fieldName | Specifies the field name. |
System.String | operator | Specifies the filter operator. |
System.Object | value | Specifies the filter value. |
System.Boolean | ignoreCase | Performs incasesensitive filtering. |
System.Boolean | ignoreAccent | Ignores accent/diacritic letters while filtering. |
Returns
Type |
---|
WhereFilter |