ConditionGroup Validation
A ConditionGroup composes multiple Conditions and nestedSubConditionGroups. Sort values determine the order they appear in the generated expression and must be unique inside each list.
Rules
| Rule | Error Code |
|---|---|
Conditions Sort values must be unique | ConditionsUniqueSort |
SubConditionGroups Sort values must be unique | SubConditionsGroupsUniqueSort |
Note
The two lists are validated independently — a
Condition with Sort = 1 and a SubConditionGroup with Sort = 1 in the same group is valid.Related
- ConditionGroup class
- Condition rules — each child
Conditionis also validated. - Where (group) example