ComponentOne ASP.NET MVC Controls
ODataVersion Method

C1.Web.Mvc.Fluent Namespace > BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Class : ODataVersion Method
The value.
Configurates ODataVersion. Sets the OData version used by the server.
Syntax
'Declaration
 
Public Function ODataVersion( _
   ByVal value As Nullable(Of Double) _
) As TBuilder
public TBuilder ODataVersion( 
   Nullable<double> value
)

Parameters

value
The value.

Return Value

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 property to the appropriate value (1 through 4) when creating it.
See Also

Reference

BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Class
BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Members