PropertyExtensions.GetScale(IProperty) 方法

定義

取得這個屬性中允許的資料小數位數。 例如,如果 屬性是 Decimal ,則這是小數位數的最大值。

public static int? GetScale (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetScale : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Nullable<int>
<Extension()>
Public Function GetScale (property As IProperty) As Nullable(Of Integer)

參數

property
IProperty

要取得縮放比例的屬性。

傳回

尺規,如果沒有定義,則 null 為 。

適用於