RelationalPropertyExtensions.GetPrecision 方法

定義

多載

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

GetPrecision(IProperty, StoreObjectIdentifier)

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

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

public static int? GetPrecision (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetPrecision : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetPrecision (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)

參數

property
IReadOnlyProperty

屬性。

storeObject
StoreObjectIdentifier

包含資料行之類似資料表的存放區物件的識別碼。

傳回

有效位數,如果沒有定義,則 null 為 。

適用於

GetPrecision(IProperty, StoreObjectIdentifier)

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

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

參數

property
IProperty

屬性。

storeObject
StoreObjectIdentifier

包含資料行之類似資料表的存放區物件的識別碼。

傳回

有效位數,如果沒有定義,則 null 為 。

適用於