Condividi tramite


IConventionProperty.SetJsonValueReaderWriterType(Type, Boolean) Metodo

Definizione

Imposta il tipo di JsonValueReaderWriter<TValue> da utilizzare per questa proprietà.

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

Parametri

readerWriterType
Type

Tipo che eredita da JsonValueReaderWriter<TValue>o null per usare il lettore/writer dal mapping dei tipi.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a