Last active
January 3, 2016 10:29
-
-
Save nmackenzie/8449714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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