PropertyExtensions.GetPrecision(IProperty) 方法

定義

取得這個屬性中允許的資料有效位數。 例如,如果 屬性是 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 定義,則為 。

適用於