Table of Contents

Interface IUnionQueryRunner

Namespace
eQuantic.Core.Data.Repository
Assembly
eQuantic.Core.Data.dll

A unit of work that runs a typed UNION/UNION ALL on the store: every branch's filter and projection push down, the store combines the branches (deduplicating for Distinct<TResult>(params UnionBranch<TResult>[])), and only the combined rows travel. Providers opt in.

public interface IUnionQueryRunner

Methods

UnionAsync<TResult>(UnionQuery<TResult>, CancellationToken)

Runs the union and materializes the combined rows into the common shape.

Task<IReadOnlyList<TResult>> UnionAsync<TResult>(UnionQuery<TResult> query, CancellationToken cancellationToken = default)

Parameters

query UnionQuery<TResult>

The composed union.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IReadOnlyList<TResult>>

The combined rows, in the query's order.

Type Parameters

TResult

The common result shape.