1

Closed

DataServiceVersion in $metadata should be 3.0 instead of 1.0

description

The attribute Indicates the version of the OData annotations used in the service metadata document. Client will use this value to check if it can read the document. Since we support inheritance and actions in OData v3, we should make the version to 3.0 as well.
Closed Jan 17 at 10:27 PM by hongyes
Verified

comments

HongmeiG wrote Oct 4, 2012 at 10:54 PM

Can you verify this is because the Add Service Reference only works with 1.0.

hongyes wrote Oct 17, 2012 at 7:08 PM

I was not able to set DataServiceVersion to 3.0 by:
IEdmModel model = GetEdmModel();
model.SetDataServiceVersion(new Version(3, 0));
But I checked the sample service in odata.org. Its version is 2.0 and it works fine with ASR. So reopen the issue.

HongmeiG wrote Oct 19, 2012 at 5:29 PM

We should update the version to 3.0 if ASR works with it.