public async Task <ICollection <T> > ReadAllItemsAsync() { List <T> allItems = new List <T>(); var pageSize = 50; var hasMore = true; while (hasMore) { var pageOfItems = await table.Skip(allItems.Count).Take(pageSize).ToListAsync(); if (pageOfItems.Count > 0) { allItems.AddRange(pageOfItems); } else { hasMore = false; } } return(allItems); }
public async Task <ICollection <T> > ReadItemsAsync(int start, int count) { return(await table.Skip(start).Take(count).ToListAsync()); }
public async Task <ICollection <T> > GetAll() => await table.ToListAsync(); // This will only get as many as the server is willing to return public async Task <ICollection <T> > GetItems(int start, int end) => await table.Skip(start).Take(end).ToListAsync();
public async Task <ICollection <Recipe> > GetRecipes(int start, int end) { return(await recipeTable.Skip(start).Take(end).ToListAsync()); }
public IMobileServiceTableQuery <T> Skip(int count) { return(_syncTable.Skip(count)); }