IConventionProperty.SetScale(Nullable<Int32>, Boolean) Méthode

Définition

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

public int? SetScale (int? scale, bool fromDataAnnotation = false);
abstract member SetScale : Nullable<int> * bool -> Nullable<int>
Public Function SetScale (scale As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Paramètres

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 à