Skip to main content
Version: 4.2

QueryRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

One comparison in a QueryBuilder tree.

public sealed 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​

Instance member QueryRule(field, comparison, value)​

Creates an unattached comparison.

NameTypeDescription
fieldStringStable field name.
comparisonQueryOperatorComparison operator.
valueStringInvariant literal, or null for a null comparison.

Properties​

Instance member Field​

String: Gets or sets the stable field name.

Instance member Operator​

QueryOperator: Gets or sets the comparison operator.

Instance member Value​

String: Gets or sets the invariant literal value.