語言

PropertyExtensions.GetScale(IProperty) 方法

定義

取得此屬性允許的資料規模。 例如,若性質為 a 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 如果沒有,則是定義的。

適用於