IConventionProperty.SetJsonValueReaderWriterType(Type, Boolean) Méthode

Définition

Définit le type de JsonValueReaderWriter<TValue> à utiliser pour cette propriété.

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

Paramètres

readerWriterType
Type

Type qui hérite de JsonValueReaderWriter<TValue>, ou null pour utiliser le lecteur/writer du mappage de type.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Valeur configurée.

S’applique à