MutablePropertyExtensions.SetPrecision 方法

定義

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

public static void SetPrecision (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? precision);
static member SetPrecision : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetPrecision (property As IMutableProperty, precision As Nullable(Of Integer))

參數

property
IMutableProperty

要設定 有效位數的屬性。

precision
Nullable<Int32>

這個屬性中允許的最大位數。

適用於