Skip to content

Instantly share code, notes, and snippets.

@nmackenzie
Created January 16, 2014 04:07
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/8449628 to your computer and use it in GitHub Desktop.
Save nmackenzie/8449628 to your computer and use it in GitHub Desktop.
CloudStorageAccount storageAccount = new CloudStorageAccount(
new StorageCredentials(accountName, accountKey), true);
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
CloudTable bookTable = tableClient.GetTableReference("book");
var query = from book in bookTable.CreateQuery<BookEntity>()
where book.PartitionKey == "hardback"
select book;
foreach (BookEntity entity in query) {
String name = entity.Name;
String author = entity.Author;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment