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

Created Issue: Add parameter binder for supporting odata literal format. [325]

$
0
0
OData urls can contain edm primitives. The string representation of these primitives is different than what webapi (and .NET) uses causing model binding errors.

For example, the url "http://localhost/Products('Microsoft Windows ')" with the route template "/Products({name})" is expected to map to the action, "Product Get(string name) { ... }".

Similarly, "http://localhost/Products(guid'12345678-aaaa-bbbb-cccc-ddddeeeeffff') with route template "/Products({id})" is expected to map to the action, "Product Get(Guid id)".

We have to add a parameter binder that understands odata literals and does the model binding appropriately.


Viewing all articles
Browse latest Browse all 7215

Trending Articles



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