Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Created February 6, 2013 16:16
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 beyond-code-github/4723682 to your computer and use it in GitHub Desktop.
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.
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