QueryRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
One comparison in a QueryBuilder tree.
- C#
- VB.NET
public sealed class QueryRule
Public NotInheritable Class QueryRule
Values are strings: invariant numbers, yyyy-MM-dd dates, true/false booleans, or literal text and choice keys. Attached rules validate each edit atomically. Use a new QueryRule to change field, operator, and value together.
Example:
builder.Root.Rules.Add(new QueryRule("CPU", QueryOperator.GreaterThan, "80"));
Constructors
QueryRule(field, comparison, value)
Creates an unattached comparison.
| Name | Type | Description |
|---|---|---|
| field | String | Stable field name. |
| comparison | QueryOperator | Comparison operator. |
| value | String | Invariant literal, or null for a null comparison. |
Properties
Field
String: Gets or sets the stable field name.
Operator
QueryOperator: Gets or sets the comparison operator.
Value
String: Gets or sets the invariant literal value.