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

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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)

protected virtual IQueryable<TEntity> CreateQuery<TEntity>(
	IQueryProvider provider,
	string entityLogicalName
)

Parameters

provider
Type: System.Linq.IQueryProvider

Type: IQueryProvider. The provider of the Web service.

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.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: