Share via


AsyncQueryableExtensions.With Method

Definition

Overloads

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>)

Include a child collection in the query result.

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,Object>>)

Include a specific property in the query result.

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>, Boolean)
Obsolete.

Include a child collection in the query result.

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>)

Include a child collection in the query result.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> With<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 With : 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 With(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

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,Object>>)

Include a specific property in the query result.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> With<TEntity> (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> source, System.Linq.Expressions.Expression<Func<TEntity,object?>> spanSelection) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
static member With : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Linq.Expressions.Expression<Func<'Entity, obj>> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
<Extension()>
Public Function With(Of TEntity As IEntity) (source As IAsyncQueryable(Of TEntity), spanSelection As Expression(Of Func(Of TEntity, Object))) 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,Object>>

A lambda expression to pick up a property.

Returns

A query to retrieve the additional property.

Applies to

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>, Boolean)

Caution

Use WithRequired function instead.

Include a child collection in the query result.

[System.Obsolete("Use WithRequired function instead.")]
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> With<TEntity> (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> source, System.Linq.Expressions.Expression<Func<TEntity,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable>> spanSelection, bool isRequiredNotEmpty) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
[<System.Obsolete("Use WithRequired function instead.")>]
static member With : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Linq.Expressions.Expression<Func<'Entity, Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable>> * bool -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
<Extension()>
Public Function With(Of TEntity As IEntity) (source As IAsyncQueryable(Of TEntity), spanSelection As Expression(Of Func(Of TEntity, IAsyncQueryable)), isRequiredNotEmpty As Boolean) 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.

isRequiredNotEmpty
Boolean

Whether it must not be an empty collection.

Returns

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

Attributes

Applies to