[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.BaseODataCollectionViewServiceBuilder-3.ODataVersion

ODataVersion Method

ODataVersion(double?)

Configurates ODataVersion. Sets the OData version used by the server.

Declaration
public TBuilder ODataVersion(double? value)
Parameters
Type Name Description
double? value

The value.

Returns
Type Description
TBuilder

Current builder.

Remarks

There are currently four versions of OData services, 1.0 through 4.0. Version 4.0 is used by the latest services, but there are many legacy services still in operation. If you know what version of OData your service implements, set the ODataVersion(double?) property to the appropriate value (1 through 4) when creating it.