ConventionPropertyExtensions.SetProviderClrType Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit le type vers lequel la valeur de propriété sera convertie avant d’être envoyée au fournisseur de base de données.
public static void SetProviderClrType (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Type providerClrType, bool fromDataAnnotation = false);
public static Type SetProviderClrType (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Type providerClrType, bool fromDataAnnotation = false);
static member SetProviderClrType : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Type * bool -> unit
static member SetProviderClrType : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Type * bool -> Type
<Extension()>
Public Sub SetProviderClrType (property As IConventionProperty, providerClrType As Type, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetProviderClrType (property As IConventionProperty, providerClrType As Type, Optional fromDataAnnotation As Boolean = false) As Type
Paramètres
- property
- IConventionProperty
Propriété.
- providerClrType
- Type
Type à utiliser ou null
pour supprimer tout type 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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour