Споделяне чрез


OrganizationServiceContext.CreateQuery<TEntity> Method ()

 

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

public IQueryable<TEntity> CreateQuery<TEntity>()
where TEntity : Entity
public:
generic<typename TEntity>
where TEntity : Entity
IQueryable<TEntity>^ CreateQuery()
member CreateQuery<'TEntity when 'TEntity : Entity> : unit -> IQueryable<'TEntity>
Public Function CreateQuery(Of TEntity As Entity) As IQueryable(Of TEntity)

Return Value

Type: System.Linq.IQueryable<TEntity>

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

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