operand-class
Represents one operand in some operator's expression
public class Korzh.EasyQuery.Operand
Assembly: Korzh.EasyQuery.dll
Constructors
| Name | Type | Description |
|---|---|---|
Operand(DataModel model, DataType dataType, DataKind kind, ValueEditor editor) | void | Initializes a new instance of the Korzh.EasyQuery.Operand class. |
| Operand(Operand source) | void | Initializes a new instance of the Korzh.EasyQuery.Operand class. |
| Operand(DataModel model) | void | Initializes a new instance of the Korzh.EasyQuery.Operand class. |
Properties
| Name | Type | Description |
|---|---|---|
| DataType | DataType | Gets or sets the type of the data. |
| DefaultText | string | Gets the text for default operand value. |
| DefaultValue | string | Gets or sets the default value for this operand. |
| Editor | ValueEditor | Gets or sets the value editor associated with this operand. If there is no such editor in the model, it will be added on Set. |
| Kind | DataKind | Gets or sets the kind of operand (scalar, list, etc) |
| Model | DataModel | Gets or sets the model. |
| Name | string | Gets or sets the name of operand. |
Methods
| Name | Type | Description |
|---|---|---|
ReadFromJsonAsync(JsonReader reader, CancellationToken ct = null) | Task | Reads all operand's properties from JSON (asynchronous way). |
SetEditorWithoutChecking(ValueEditor editor) | void | Sets editor without adding it to model. |
| ToString() | string | Returns a System.String that represents this instance. |
WriteToJsonAsync(JsonWriter writer, CancellationToken ct = null) | Task | Writes operand's content to JSON (asynchronous way). |