IConventionProperty.SetPrecision(Nullable<Int32>, Boolean) 方法

定義

設定此屬性中允許的資料有效位數。 例如,如果 屬性是 Decimal ,則這是最大位數。

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

參數

precision
Nullable<Int32>

此屬性中允許的最大位數。

fromDataAnnotation
Boolean

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

傳回

適用於