Eksportuj (0) Drukuj
Rozwiń wszystko
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

MobileServiceTable.where function

Updated: June 20, 2013

Applies a row filtering predicate to the query against the table.

mobileServiceTable.where(object);
mobileServiceTable.where(function() { /* defines projection */ });

object
Type: object

JSON object that defines the row filter.

function
Type: function

Function that defines the row filter.

Type: Query object

A query that can be further composed.

This code executed a query that uses a JSON object to define a filter for completed items. The results are then bound to a control.

todoTable.where({ complete: false })
   .read()
   .done(function (results) {
       todoItems = new WinJS.Binding.List(results);
       listItems.winControl.itemDataSource = todoItems.dataSource;
   });      

 

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

Pokaż:
© 2014 Microsoft