MobileServiceTable object

Represents a table in a mobile service to support insert, update, delete, and query operations.

var mobileServiceTable = MobileServicesClient.getTable(name);

Members

This object contains the following members:

Methods

Method Description

del

Deletes an object from a given table.

getMobileServiceClient

Gets the MobileServiceClient object associated with this table.

getTableName

Gets the name of the table.

includeTotalCount

Requests that the query include the total count for all the records returned.

insert

Inserts a new object into the table.

lookup

Requests an existing instance from the table by its ID value.

orderBy

Sorts a query against the table by the selected columns, in ascending order.

orderByDescending

Sorts a query against the table by the selected columns, in descending order.

read

Executes a query against the table.

refresh

Gets the latest property values from the table in the mobile service.

select

Applies the specific column projection to the query against the table.

skip

Skips the specified number of rows in the query.

take

Limits the number of rows returned by the query to the specified number.

update

Updates an object in a given table.

where

Filters the data returned by the query.

Remarks

Query methods (orderBy, orderByDescending, select, skip, take and where) all return a new query object. This enables you to compose queries as a series of method calls.

Create a new instance of the MobileServiceTable object by calling the MobileServiceClient.getTable function, supplying the name of the table.

.NET Framework Equivalent

IMobileServiceTable

Requirements

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

See Also

Concepts

Client library for JavaScript

Other Resources

Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services