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
queryUnionQuery<TResult>The composed union.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<IReadOnlyList<TResult>>
The combined rows, in the query's order.
Type Parameters
TResultThe common result shape.