IConventionProperty.SetJsonValueReaderWriterType(Type, Boolean) Method

Definition

Sets the type of JsonValueReaderWriter<TValue> to use for this property.

public Type? SetJsonValueReaderWriterType (Type? readerWriterType, bool fromDataAnnotation = false);
abstract member SetJsonValueReaderWriterType : Type * bool -> Type
Public Function SetJsonValueReaderWriterType (readerWriterType As Type, Optional fromDataAnnotation As Boolean = false) As Type

Parameters

readerWriterType
Type

A type that inherits from JsonValueReaderWriter<TValue>, or null to use the reader/writer from the type mapping.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to