Skip to content

Instantly share code, notes, and snippets.

@nmackenzie
Created January 16, 2014 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmackenzie/8449681 to your computer and use it in GitHub Desktop.
Save nmackenzie/8449681 to your computer and use it in GitHub Desktop.
TableQuery<BookEntity> query =
(from book in bookTable.CreateQuery<BookEntity>()
where book.PartitionKey == "hardback"
select book).AsTableQuery<BookEntity>();
TableContinuationToken continuationToken = null;
do {
var queryResult = query.ExecuteSegmented(continuationToken);
foreach (BookEntity entity in queryResult) {
String name = entity.Name;
String genre = entity.Genre;
}
continuationToken = queryResult.ContinuationToken;
} while (continuationToken != null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment