Class UnionQuery
Combines union branches into a runnable query.
public static class UnionQuery
- Inheritance
-
UnionQuery
- Inherited Members
Methods
All<TResult>(params UnionBranch<TResult>[])
Combines the branches with UNION ALL — every row from every branch, duplicates kept.
public static UnionQuery<TResult> All<TResult>(params UnionBranch<TResult>[] branches)
Parameters
branchesUnionBranch<TResult>[]At least two branches projecting the same shape.
Returns
- UnionQuery<TResult>
Type Parameters
TResultThe common result shape.
Distinct<TResult>(params UnionBranch<TResult>[])
Combines the branches with UNION — duplicate projected rows collapse (SQL UNION semantics).
public static UnionQuery<TResult> Distinct<TResult>(params UnionBranch<TResult>[] branches)
Parameters
branchesUnionBranch<TResult>[]At least two branches projecting the same shape.
Returns
- UnionQuery<TResult>
Type Parameters
TResultThe common result shape.