Table of Contents

Class UnionQuery

Namespace
eQuantic.Core.Data.Query
Assembly
eQuantic.Core.Data.dll

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

branches UnionBranch<TResult>[]

At least two branches projecting the same shape.

Returns

UnionQuery<TResult>

Type Parameters

TResult

The 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

branches UnionBranch<TResult>[]

At least two branches projecting the same shape.

Returns

UnionQuery<TResult>

Type Parameters

TResult

The common result shape.