Skip to main content
Version: 4.2

QueryGroup

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

A nested group of rules and child groups.

public sealed class QueryGroup

A group can belong to only one tree. The root has depth zero. Attached edits refresh the control automatically; invalid edits leave the previous tree intact. Empty groups are retained in JSON and omitted from the expression preview.

Example:

var group = new QueryGroup { Logic = QueryLogic.Or };
group.Rules.Add(new QueryRule("Region", QueryOperator.Equal, "EU"));
group.Rules.Add(new QueryRule("Region", QueryOperator.Equal, "APAC"));
builder.Root.Groups.Add(group);

Constructors​

Instance member QueryGroup()​

Creates an empty AND group.

Properties​

Instance member Groups​

QueryGroupCollection: Gets the nested groups.

Instance member Logic​

QueryLogic: Gets or sets the conjunction for every rule and child group. (Default: And)

Instance member Rules​

QueryRuleCollection: Gets the rules evaluated before child groups in the expression preview.