語言

MutablePropertyExtensions.SetScale 方法

定義

設定此屬性允許的資料尺度。 例如,若性質為 a Decimal ,則此為最大小數位數。

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

參數

property
IMutableProperty

設定比例的屬性。

scale
Nullable<Int32>

此性質允許的最大小數位數。

適用於