AsyncQueryableExtensions.Get<TSource,TResult> Method

Definition

Gets a child collection to be returned from the query.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TResult> Get<TSource,TResult> (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TSource> source, System.Linq.Expressions.Expression<Func<TSource,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TResult>>> selectFunction) where TSource : Microsoft.VisualStudio.ProjectSystem.Query.IEntity where TResult : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
static member Get : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Source (requires 'Source :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Linq.Expressions.Expression<Func<'Source, Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Result>>> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Result (requires 'Result :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Source :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity and 'Result :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
<Extension()>
Public Function Get(Of TSource As IEntity, TResult As IEntity) (source As IAsyncQueryable(Of TSource), selectFunction As Expression(Of Func(Of TSource, IAsyncQueryable(Of TResult)))) As IAsyncQueryable(Of TResult)

Type Parameters

TSource

The type of elements in the current query.

TResult

The type of elements in the child collection of the result query.

Parameters

source
IAsyncQueryable<TSource>

The source query.

selectFunction
Expression<Func<TSource,IAsyncQueryable<TResult>>>

An expression to describe what data should be selected from a child collection.

Returns

IAsyncQueryable<TResult>

A new attached query, which is executable.

Applies to