[]
        
(Showing Draft Content)

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

DataType Method

DataType(string, DataType)

Configurates DataTypes. Sets an object to be used as a map for coercing data types when loading the data.

Declaration
public TBuilder DataType(string fieldName, DataType dataType)
Parameters
Type Name Description
string fieldName

The field name.

DataType dataType

The type of the field data.

Returns
Type Description
TBuilder

Current builder.

Remarks

The object keys represent the field names and the values are DataType values that indicate how the data should be coerced.