Operator class
Represents a logical expression or “predicate”. For example: “less than”, “is equal to”, “starts with”.
public class Korzh.EasyQuery.OperatorPackage: Korzh.EasyQuery (targets: netstandard2.0)
Assembly: Korzh.EasyQuery.dll
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| AppliedTypes | DataTypeList | Gets the list of applied types for this operator. |
| Caption | string | Gets or sets the operator caption. |
| CaseInsensitive | bool | Gets or sets a value indicating whether the operator is case insensative. |
| ConstValueFormat | string | Gets or sets the format of constant values. This property is used to process LIKE and similar operators |
| DefaultOperand | Operand | Gets the defaults settings of operator operands. |
| DisplayFormat | string | Gets or sets the display format of operator. |
| Expr | string | Gets or sets the operator expression. |
| Group | OperatorGroup | Gets or sets the group which this operator belongs to. |
| Id | string | Gets or sets the operator ID. |
| IsCondition | bool | Gets or sets a value indicating whether this operator instance represents custom condition. |
| IsRange | bool | Gets or sets a value indicating whether this operator requires range values so first value must be less than the second one. |
| MainText | string | Gets the main part of operator’s DisplayFormat (this text will be shown as link in query panel) |
| MathSymbol | string | Gets the math symbol that represents this operator. |
| Model | DataModel | Gets or sets the model. |
| Operands | OperandList | Gets the operands for this operator. |
| ParamCount | int | Gets the number of parameters which are taken by the operator. |
Methods
Section titled “Methods”| Name | Type | Description |
|---|---|---|
| CalcParamCount() | void | Calculates the count of the parameters. |
GetOperand(int operandIndex) | Operand | Gets the operand of current operator by its index. |
ReadFromJsonAsync(JsonReader reader) | Task | Reads operator’s content from the JSON (asynchronous way). |
| ToString() | string | Returns a |
WriteToJsonAsync(JsonWriter writer) | Task | Writes operator’s content to JSON (asynchronous way). |