ComponentOne ASP.NET MVC Controls
InferDataTypes Method

C1.Web.Mvc.Fluent Namespace > BaseODataCollectionViewServiceBuilder<T,TControl,TBuilder> Class : InferDataTypes Method
The value.
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 Function InferDataTypes( _
   ByVal value As Boolean _
) As TBuilder
public TBuilder InferDataTypes( 
   bool value
)

Parameters

value
The value.

Return Value

Current builder.
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

Reference

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