Class UnionSource<TEntity>
A union branch under composition: the entity source, its filters, and finally its projection.
public sealed class UnionSource<TEntity> where TEntity : class
Type Parameters
TEntityThe 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
projectionExpression<Func<TEntity, TResult>>The projection.
Returns
- UnionBranch<TResult>
Type Parameters
TResultThe 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
filterExpression<Func<TEntity, bool>>The predicate.
Returns
- UnionSource<TEntity>