Skip to content

Instantly share code, notes, and snippets.

@nmackenzie
Last active January 3, 2016 10:29
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/8449714 to your computer and use it in GitHub Desktop.
Save nmackenzie/8449714 to your computer and use it in GitHub Desktop.
EntityResolver<Writer> resolver = (pk, rk, ts, props, etag) =>
{
Writer writer = new Writer() {
Information = String.Format("{0} wrote {1} in {2}",
props["Author"].StringValue, props["Name"].StringValue,
props["Year"].Int32Value)
};
return writer;
};
var query =
(from book in bookTable.CreateQuery<DynamicTableEntity>()
where book.PartitionKey == "hardback"
select book).Resolve(resolver);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment