Share via


IMobileServiceTableQuery<T> Interface

Definition

Represents a query that can be evaluated against a Mobile Services table. MobileServiceTableQuery instances can be obtained via MobileServiceClient.Query(of T)().

public interface IMobileServiceTableQuery<T>
type IMobileServiceTableQuery<'T> = interface
Public Interface IMobileServiceTableQuery(Of T)

Type Parameters

T

Remarks

Rather than implenting IQueryable directly, we've implemented the portion of the LINQ query pattern we support on MobileServiceTableQuery objects. MobileServiceTableQuery instances are used to build up IQueryables from LINQ query operations.

Properties

Parameters

The user-defined query string parameters to include with the query.

Query

Gets the underlying IQueryable associated with this query.

RequestTotalCount

Gets a value indicating whether the query will request the total count for all the records that would have been returned ignoring any take paging/limit clause specified by client or server.

Table

Gets the MobileServiceTable being queried.

Methods

IncludeDeleted()

Ensure the query will get the deleted records.

IncludeTotalCount()

Ensure the query will get the total count for all the records that would have been returned ignoring any take paging/limit clause specified by client or server.

OrderBy<TKey>(Expression<Func<T,TKey>>)

Applies the specified ascending order clause to the source query.

OrderByDescending<TKey>(Expression<Func<T,TKey>>)

Applies the specified descending order clause to the source query.

Select<U>(Expression<Func<T,U>>)

Applies the specified selection to the source query.

Skip(Int32)

Applies the specified skip clause to the source query.

Take(Int32)

Applies the specified take clause to the source query.

ThenBy<TKey>(Expression<Func<T,TKey>>)

Applies the specified ascending order clause to the source query.

ThenByDescending<TKey>(Expression<Func<T,TKey>>)

Applies the specified descending order clause to the source query.

ToEnumerableAsync()

Evalute the query asynchronously and return the results.

ToListAsync()

Evalute the query asynchronously and return the results in a new List.

Where(Expression<Func<T,Boolean>>)

Applies the specified filter predicate to the source query.

WithParameters(IDictionary<String,String>)

Applies to the source query the specified string key-value pairs to be used as user-defined parameters with the request URI query string.

Extension Methods

ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32)

Create a new collection based on the query.

Applies to