Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Created August 23, 2017 15:14
Show Gist options
  • Save dontpaniclabsgists/6890f03f74f488fdc5b493154e2861c2 to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/6890f03f74f488fdc5b493154e2861c2 to your computer and use it in GitHub Desktop.
Cosmos1_6
var results = new List<Note>();
while (query.HasMoreResults)
{
results.AddRange(await query.ExecuteNextAsync<Note>());
}
return results.OrderBy(x => x.Id).ToArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment