OData / ODataSamples

Samples: For ODataLib, OData Web API, RESTier, etc.
http://odata.github.io/
Other
293 stars 222 forks source link

#metadata link is wrong in returned results (WebApiClassic/DynamicEdmModelCreation) #130

Open VisualMicro opened 4 years ago

VisualMicro commented 4 years ago

We have integrated the DynamicEdmModelCreation into an Asp/Mvc web application which works very well thank you.

Q: One small question is why the meta link is missing the data source?

For example:-

Request [web_app]/odata/MyDataSource/products

Response {"@odata.context":"[web_app]/odata/$metadata#Products","value":[{"Name":"abc","ID":1},{"Name":"def","ID":2}]}

Reponse should be:- {"@odata.context":"[web_app]/odata/MyDataSource/$metadata#Products","value":[{"Name":"abc","ID":1},{"Name":"def","ID":2}]}

`