Share via


AsyncQueryableExtensions.WithRequired<TEntity> Method

Definition

Include a non-empty child collection in the query result.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> WithRequired<TEntity> (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> source, System.Linq.Expressions.Expression<Func<TEntity,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable>> spanSelection) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
static member WithRequired : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Linq.Expressions.Expression<Func<'Entity, Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable>> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
<Extension()>
Public Function WithRequired(Of TEntity As IEntity) (source As IAsyncQueryable(Of TEntity), spanSelection As Expression(Of Func(Of TEntity, IAsyncQueryable))) As IAsyncQueryable(Of TEntity)

Type Parameters

TEntity

The type of entities where the query applies.

Parameters

source
IAsyncQueryable<TEntity>

A source collection or query.

spanSelection
Expression<Func<TEntity,IAsyncQueryable>>

A lambda expression to represent a child query applied to the child collection.

Returns

A query to retrieve the additional collection (with the child query specified).

Applies to