語言

PropertyExtensions.GetPrecision(IProperty) 方法

定義

取得此性質允許的資料精確度。 例如,若性質為 a Decimal ,則為最大數字數。

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

參數

property
IProperty

要取得的精確度。

傳回

精確度,或者 null 如果沒有,則是。

適用於