ASP.NET Core MVC Controls | ComponentOne
C1.AspNetCore.Mvc Assembly / C1.Web.Mvc.TagHelpers Namespace / ODataCollectionViewServiceTagHelper Class / ODataVersion Property

In This Topic
    ODataVersion Property (ODataCollectionViewServiceTagHelper)
    In This Topic
    Configurates C1.Web.Mvc.BaseODataCollectionViewService<T>.ODataVersion. Sets the OData version used by the server.
    Syntax
    'Declaration
     
    Public Property ODataVersion As Nullable(Of Double)
    public Nullable<double> ODataVersion {get; set;}
    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