<script type="text/javascript" src="scripts/start.debug.js"></script>
Sys.require([Sys.components.dataView, Sys.components.openDataContext, Sys.components.openDataServiceProxy]);
var exampleService = new Sys.Data.OpenDataServiceProxy("/northwind.svc");
exampleService.query("/Customers", cbSuccess, cbFailure, userContext);
/northwind.svc/Customers
exampleService.query("/Customers('ALFKI')/Orders?$filter=ShippedDate ge '1998-01-01'", cbSuccess, cbFailure, userContext);
__deferred
if (selectedItem.ProductSubcategory.__deferred) { exampleService.fetchDeferredProperty( selectedItem, "ProductSubcategory", succeededFetchDeferredCallback, failedFetchDeferredCallback, userContext ); }
var newCategory = {"CategoryName":"Decorations"}; exampleService.insert(newCategory,"/Categories");