Table of Contents

Class UnionSource<TEntity>

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

A union branch under composition: the entity source, its filters, and finally its projection.

public sealed class UnionSource<TEntity> where TEntity : class

Type Parameters

TEntity

The entity type the branch reads.

Inheritance
UnionSource<TEntity>
Inherited Members

Methods

IgnoringQueryFilters()

Opts this branch out of the entity's global query filter.

public UnionSource<TEntity> IgnoringQueryFilters()

Returns

UnionSource<TEntity>

Select<TResult>(Expression<Func<TEntity, TResult>>)

Projects the branch into the union's common shape. Each projected member must be an entity member or a constant (a per-branch tag); derived values are computed after materialization.

public UnionBranch<TResult> Select<TResult>(Expression<Func<TEntity, TResult>> projection)

Parameters

projection Expression<Func<TEntity, TResult>>

The projection.

Returns

UnionBranch<TResult>

Type Parameters

TResult

The common result shape (anonymous or member-init).

Where(Expression<Func<TEntity, bool>>)

Filters the branch — every call ANDs another predicate. The filter applies before the union.

public UnionSource<TEntity> Where(Expression<Func<TEntity, bool>> filter)

Parameters

filter Expression<Func<TEntity, bool>>

The predicate.

Returns

UnionSource<TEntity>