forked from simplefx/Simple.OData
-
Notifications
You must be signed in to change notification settings - Fork 192
Retrieving all data from a collection
object edited this page Feb 11, 2013
·
28 revisions
var products = _client .From("Products") .FindEntries(); Assert.NotEmpty(products);
Request URI: GET Products
var count = _client .From("Products") .Count() .FindScalar(); Assert.True(count > 0);
Request URI: GET Products/$count
Promise<int> count; var products = _client .From("Products") .FindEntries(true, out count); Assert.NotEmpty(products); Assert.True(count > 1);
Request URI: GET Products?$top=1&$inlinecount=allpages
See also:
Retrieving data