OrganizationServiceContext.CreateQuery OrganizationServiceContext.CreateQuery OrganizationServiceContext.CreateQuery OrganizationServiceContext.CreateQuery Method

Definition

Overloads

CreateQuery(String) CreateQuery(String) CreateQuery(String) CreateQuery(String)

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

CreateQuery<TEntity>(IQueryProvider, String) CreateQuery<TEntity>(IQueryProvider, String) CreateQuery<TEntity>(IQueryProvider, String) CreateQuery<TEntity>(IQueryProvider, String)

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

CreateQuery<TEntity>() CreateQuery<TEntity>() CreateQuery<TEntity>() CreateQuery<TEntity>()

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

CreateQuery(String) CreateQuery(String) CreateQuery(String) 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 String String String

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

Returns

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

CreateQuery<TEntity>(IQueryProvider, String) CreateQuery<TEntity>(IQueryProvider, String) CreateQuery<TEntity>(IQueryProvider, String) 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

Type: Entity. The entity to be queried.

Parameters

provider
IQueryProvider IQueryProvider IQueryProvider IQueryProvider

Type: IQueryProvider. The provider of the Web service.

entityLogicalName
String String String String

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

Returns

IQueryable<TEntity>

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

CreateQuery<TEntity>() CreateQuery<TEntity>() CreateQuery<TEntity>() 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

Type: Entity. The entity to be queried.

Returns

IQueryable<TEntity>

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

Applies to