Share via


IConventionElementType.SetScale(Nullable<Int32>, Boolean) 方法

定義

設定集合的這個元素中允許的資料小數位數。 例如,如果專案類型是 Decimal ,則這是小數位數的最大值。

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)

參數

scale
Nullable<Int32>

每個元素中允許的最大小數位數。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

適用於