Share via


IConventionPropertyBuilder.CanSetScale(Nullable<Int32>, Boolean) 方法

定義

傳回值,指出是否可以從目前的組態來源設定這個屬性的資料小數位數。

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

參數

scale
Nullable<Int32>

此屬性的小數位數。

fromDataAnnotation
Boolean

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

傳回

true 如果可以針對這個屬性設定允許的資料小數位數,則為 。

適用於