Created
February 6, 2013 16:16
-
-
Save beyond-code-github/4723682 to your computer and use it in GitHub Desktop.
Read a delta from a custom media type formatter... if a bit naughty.
This file contains hidden or 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
ODataConventionModelBuilder builder = new ODataConventionModelBuilder(); | |
builder.EntitySet<EfContext>("EfContext"); | |
IEdmModel model = builder.GetEdmModel(); | |
var odataFormatters = ODataMediaTypeFormatters.Create(model); | |
var delta = content.ReadAsAsync(type, odataFormatters).Result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment