DataServiceContext.CreateQuery Method

Definition

Overloads

CreateQuery<T>(String)

Creates a data service query for data of a specified generic type.

CreateQuery<T>(String, Boolean)

Creates a data service query for a function with return type in a specified generic type.

CreateQuery<T>(String)

Creates a data service query for data of a specified generic type.

public virtual Microsoft.OData.Client.DataServiceQuery<T> CreateQuery<T> (string entitySetName);
abstract member CreateQuery : string -> Microsoft.OData.Client.DataServiceQuery<'T>
override this.CreateQuery : string -> Microsoft.OData.Client.DataServiceQuery<'T>
Public Overridable Function CreateQuery(Of T) (entitySetName As String) As DataServiceQuery(Of T)

Type Parameters

T

The type returned by the query

Parameters

entitySetName
String

A string that resolves to a URI.

Returns

A new DataServiceQuery<TElement> instance that represents a data service query.

Remarks

create a query based on (BaseUri + relativeUri)

Applies to

CreateQuery<T>(String, Boolean)

Creates a data service query for a function with return type in a specified generic type.

public virtual Microsoft.OData.Client.DataServiceQuery<T> CreateQuery<T> (string resourcePath, bool isComposable);
abstract member CreateQuery : string * bool -> Microsoft.OData.Client.DataServiceQuery<'T>
override this.CreateQuery : string * bool -> Microsoft.OData.Client.DataServiceQuery<'T>
Public Overridable Function CreateQuery(Of T) (resourcePath As String, isComposable As Boolean) As DataServiceQuery(Of T)

Type Parameters

T

The type returned by the query

Parameters

resourcePath
String

A string ends with function invocation that resolves to a URI.

isComposable
Boolean

Whether this function query is composable

Returns

A new DataServiceQuery<TElement> instance that represents a data service query.

Remarks

create a query based on (BaseUri + relativeUri)

Applies to