Appearance
GroupBuilder Class
Definition
Fluent builder for nested predicate groups within a QueryBuilder.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Methods
| Name | Description |
|---|---|
GroupBuilder AndGroup(Action<GroupBuilder> inner) | Adds a nested group of predicates combined with logical AND. |
GroupBuilder OrGroup(Action<GroupBuilder> inner) | Adds a nested group of predicates combined with logical OR. |
GroupBuilder OrWhere(string column, PredicateOperator op, object value) | Adds an OR comparison predicate to the current group. |
GroupBuilder OrWhereIn(string column, IEnumerable<object> values) | Adds an OR``IN predicate for the specified column. |
GroupBuilder Where(string column, PredicateOperator op, object value) | Adds an AND comparison predicate to the current group. |
GroupBuilder WhereBetween(string column, object start, object end) | Adds an AND``BETWEEN predicate for the specified column. |
GroupBuilder WhereIn(string column, IEnumerable<object> values) | Adds an AND``IN predicate for the specified column. |
GroupBuilder WhereNotNull(string column) | Adds an AND``IS NOT NULL predicate for the specified column. |
GroupBuilder WhereNull(string column) | Adds an AND``IS NULL predicate for the specified column. |
Remarks
Used via AndGroup and OrGroup to build grouped conditions like (A AND B) OR (C AND D).