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

In This Topic
    InferDataTypes Property (ODataCollectionViewServiceTagHelper)
    In This Topic
    Configurates C1.Web.Mvc.BaseODataCollectionViewService<T>.InferDataTypes. Sets a value that determines whether fields that contain strings that look like standard date representations should be converted to dates automatically.
    Syntax
    'Declaration
     
    Public Property InferDataTypes As Boolean
    public bool InferDataTypes {get; set;}
    Remarks
    This property is set to true by default, because the C1.Web.Mvc.BaseODataCollectionViewService<T> class uses JSON and that format does not support Date objects.
    See Also