IConventionProperty.SetValueConverter Méthode

Définition

Surcharges

SetValueConverter(ValueConverter, Boolean)

Définit la valeur personnalisée ValueConverter pour cette propriété.

SetValueConverter(Type, Boolean)

Définit la valeur personnalisée ValueConverter pour cette propriété.

SetValueConverter(ValueConverter, Boolean)

Définit la valeur personnalisée ValueConverter pour cette propriété.

public Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter? SetValueConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter? converter, bool fromDataAnnotation = false);
abstract member SetValueConverter : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter * bool -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter
Public Function SetValueConverter (converter As ValueConverter, Optional fromDataAnnotation As Boolean = false) As ValueConverter

Paramètres

converter
ValueConverter

Le convertisseur, ou null pour supprimer tout convertisseur précédemment défini.

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 à

SetValueConverter(Type, Boolean)

Définit la valeur personnalisée ValueConverter pour cette propriété.

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

Paramètres

converterType
Type

Type qui hérite de ValueConverter, ou null pour supprimer tout convertisseur défini précédemment.

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 à