QueryGroup
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
A nested group of rules and child groups.
- C#
- VB.NET
public sealed class QueryGroup
Public NotInheritable 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
QueryGroup()
Creates an empty AND group.
Properties
Groups
QueryGroupCollection: Gets the nested groups.
Logic
QueryLogic: Gets or sets the conjunction for every rule and child group. (Default: And)
Rules
QueryRuleCollection: Gets the rules evaluated before child groups in the expression preview.