Compartir a través de


OrganizationServiceContext.CreateQuery Method

Definition

Overloads

CreateQuery(String)

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

CreateQuery<TEntity>(IQueryProvider, String)

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

CreateQuery<TEntity>()

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

CreateQuery(String)

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

public:
 System::Linq::IQueryable<Microsoft::Xrm::Sdk::Entity ^> ^ CreateQuery(System::String ^ entityLogicalName);
public System.Linq.IQueryable<Microsoft.Xrm.Sdk.Entity> CreateQuery (string entityLogicalName);
member this.CreateQuery : string -> System.Linq.IQueryable<Microsoft.Xrm.Sdk.Entity>
Public Function CreateQuery (entityLogicalName As String) As IQueryable(Of Entity)

Parameters

entityLogicalName
String

The logical name of the entity to be queried.

Returns

The query of the specified entity.

Applies to

CreateQuery<TEntity>(IQueryProvider, String)

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

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

Type Parameters

TEntity

The entity to be queried.

Parameters

provider
IQueryProvider

The provider of the Web service.

entityLogicalName
String

The logical name of the entity to be queried.

Returns

IQueryable<TEntity>

The query of the specified entity type..

Applies to

CreateQuery<TEntity>()

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

public:
generic <typename TEntity>
 where TEntity : Microsoft::Xrm::Sdk::Entity System::Linq::IQueryable<TEntity> ^ CreateQuery();
public System.Linq.IQueryable<TEntity> CreateQuery<TEntity> () where TEntity : Microsoft.Xrm.Sdk.Entity;
member this.CreateQuery : unit -> System.Linq.IQueryable<'Entity (requires 'Entity :> Microsoft.Xrm.Sdk.Entity)> (requires 'Entity :> Microsoft.Xrm.Sdk.Entity)
Public Function CreateQuery(Of TEntity As Entity) () As IQueryable(Of TEntity)

Type Parameters

TEntity

The entity to be queried.

Returns

IQueryable<TEntity>

The query of the specified entity.

Applies to