Langue

ConventionPropertyExtensions.SetScale Méthode

Définition

Définit l’échelle des données autorisées dans cette propriété. Par exemple, si la propriété est une Decimal valeur, il s’agit du nombre maximal de décimales.

public static int? SetScale(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? scale, bool fromDataAnnotation = false);
static member SetScale : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetScale (property As IConventionProperty, scale As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Paramètres

property
IConventionProperty

La propriété.

scale
Nullable<Int32>

Nombre maximal de décimales autorisées dans cette propriété.

fromDataAnnotation
Boolean

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

Retours

S’applique à