Share via


ODataMessageReaderSettings.EnablePrimitiveTypeConversion Property

Definition

Gets or sets a value that indicates whether to convert all primitive values to the type specified in the model or provided as an expected type. Note that values will still be converted to the type specified in the payload itself.

public bool EnablePrimitiveTypeConversion { get; set; }
member this.EnablePrimitiveTypeConversion : bool with get, set
Public Property EnablePrimitiveTypeConversion As Boolean

Property Value

false if primitive values and report values are not converted; true if all primitive values are converted to the type specified in the model or provided as an expected type. The default value is true.

Applies to