Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: ODataMediaTypeFormatter requires Entity Framework models [859]

$
0
0
Hello,

I'm trying to use ODataController instead of ApiController in order to get the formatters I need to support the Patch operation with Delta<T>.

However, I am constantly getting http 406, Not Acceptable.

After digging into the source code I see that the formatter itself is assuming that I am using EDM model and fails to deserialize my types.

Please remove this dependency as I don't understand why I need EDM in order to support patch operations on my objects.

Thanks

Comments: An OData service is built on top of an EDM model. Hence, the ODataMediaTypeFormatter requires the EDM model. The EDM model that you use doesn't necessarily have to be the Entity Framework model. The actual issue though seems to be the inability to use Delta<T> without the ODataMediaTypeFormatter. There is a separate issue opened for that - [Add json.net support for Delta<T>](http://aspnetwebstack.codeplex.com/workitem/777). Please vote on that work item to show your support.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>