Share via


ICommonQueryableSpace.QueryFrom Method

Definition

Overloads

QueryFrom<TEntity>(IEnumerable<EntityIdentity>)

Creates a query from a set of object identities. The identity and the result type must match, otherwise, the query will fail at the runtime.

QueryFrom<TEntity>(IEnumerable<TEntity>)

Creates a query from a set of objects from previous query results.

QueryFrom<TEntity>(IEnumerable<EntityIdentity>)

Creates a query from a set of object identities. The identity and the result type must match, otherwise, the query will fail at the runtime.

public Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> QueryFrom<TEntity> (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.ProjectSystem.Query.EntityIdentity> identities) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId;
abstract member QueryFrom : seq<Microsoft.VisualStudio.ProjectSystem.Query.EntityIdentity> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId)
Public Function QueryFrom(Of TEntity As IEntityWithId) (identities As IEnumerable(Of EntityIdentity)) As IAsyncQueryable(Of TEntity)

Type Parameters

TEntity

An entity contract type. This type must come from the model, a customized created type inheriting from a model type is not supported.

Parameters

identities
IEnumerable<EntityIdentity>

A collection of object identities.

Returns

A new query.

Applies to

QueryFrom<TEntity>(IEnumerable<TEntity>)

Creates a query from a set of objects from previous query results.

public Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> QueryFrom<TEntity> (System.Collections.Generic.IEnumerable<TEntity> items) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId;
abstract member QueryFrom : seq<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId)> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntityWithId)
Public Function QueryFrom(Of TEntity As IEntityWithId) (items As IEnumerable(Of TEntity)) As IAsyncQueryable(Of TEntity)

Type Parameters

TEntity

An entity contract type. This type must come from the model, a customized created type inheriting from a model type is not supported.

Parameters

items
IEnumerable<TEntity>

A collection of objects from previous queries.

Returns

A new query.

Applies to