IConventionProperty.SetJsonValueReaderWriterType(Type, Boolean) 方法

定义

设置要用于此属性的 的类型 JsonValueReaderWriter<TValue>

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

参数

readerWriterType
Type

继承自 JsonValueReaderWriter<TValue>的类型,或者 null 从类型映射使用读取器/编写器。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于