Operators used in Where String
The operators in where string are used to specify the conditions that filter out data based on certain criteria. The type of the operators and their functionality are explained.
Operator | Description |
|---|---|
Equality ('=') | The equality operator retrieves the data where a property's value matches a specified value. |
Inequality ('!=' | '<>') | The inequality operator retrieves the data where a property's value does not match a specified value. |
Less than ('<') | The less than operator retrieves the data where a property's value is less than a specified value. |
Less than or equal ('<=') | The less than or equal operator retrieves the data where a property's value is less than or equal to a specified value. |
Greater than (>) | The greater than operator retrieves the data where a property's value exceeds a specified value. |
Greater than or equal ('>=') | The greater than or equal operator retrieves the data where a property's value is greater than or equal to a specified value. |
Is | The Is operator is used to check whether the value of the property is of a certain type. Syntax: <property> IS <value>. |
In | The In operator filters the data based on a condition that matches any value in a specified set. |
IsAssignableFrom | The IsAssignableFrom operator filters the data based on their compatibility with a certain datatype. |
Not | The Not operator is used to filter out the data that do not match the specific condition. The Not keyword is used to reverse any condition. |
Like | The Like operator is used to find records based on patterns in text data. It's like a search tool that looks for specific words or phrases within a column.
|
LikeX | The LikeX operator is same as Like operator it uses the same wildcard characters. |
And | The And operator is a logical operator used to combine multiple conditions. It retrieve the data that satisfy all of the specified conditions. |
Or | The Or operator is a logical operator used to combine multiple conditions. It retrieves the data that satisfies at least one of the specified conditions. |
IncludeOneOutOfRange ('<<' | '<<=' | '>>' | '>>=') | The IncludeOneOutOfRange operator ensures that one value outside the specified range is included in the result. It retrieves the data by meeting the specified condition but including one value that is out of range. Let's say we have a series of values 1,2,4,6,8 and fetch data based on values greater than or equal to 4, then the result will be 2,4,6,8. It uses a comparison operator to filter data like less than ('<<') | less than or equal ('<<=') | greater than ('>>') | greater than or equal ('>>=').
|
Updated 5 months ago
