Jaa


OrganizationServiceContext.CreateQuery<TEntity> Method (IQueryProvider, String)

 

Applies To: Dynamics CRM 2015

Creates a web service .NET Language-Integrated Query (LINQ) query for the specified entity.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

protected virtual IQueryable<TEntity> CreateQuery<TEntity>(
    IQueryProvider provider,
    string entityLogicalName
)
protected:
generic<typename TEntity>
virtual IQueryable<TEntity>^ CreateQuery(
    IQueryProvider^ provider,
    String^ entityLogicalName
)
abstract CreateQuery<'TEntity> : 
        provider:IQueryProvider *
        entityLogicalName:string -> IQueryable<'TEntity>
override CreateQuery<'TEntity> : 
        provider:IQueryProvider *
        entityLogicalName:string -> IQueryable<'TEntity>
Protected Overridable Function CreateQuery(Of TEntity) (
    provider As IQueryProvider,
    entityLogicalName As String
) As IQueryable(Of TEntity)

Parameters

  • entityLogicalName
    Type: System.String

    Type: String. The logical name of the entity to be queried.

Return Value

Type: System.Linq.IQueryable<TEntity>

Type: IQueryable<Entity>
The query of the specified entity type..

Type Parameters

  • TEntity
    Type: Entity. The entity to be queried.

See Also

CreateQuery Overload
OrganizationServiceContext Class
Microsoft.Xrm.Sdk.Client Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright