ConventionPropertyExtensions.SetPrecision 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 la précision des données autorisées dans cette propriété. Par exemple, si la propriété est un Decimal , il s’agit du nombre maximal de chiffres.
public static int? SetPrecision (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? precision, bool fromDataAnnotation = false);
static member SetPrecision : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetPrecision (property As IConventionProperty, precision As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
Paramètres
- property
- IConventionProperty
Propriété.
- fromDataAnnotation
- Boolean
Indique si la configuration a été spécifiée à l’aide d’une annotation de données.
Retours
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