語言

RelationalPropertyExtensions.GetPrecision 方法

定義

多載

名稱 Description
GetPrecision(IProperty, StoreObjectIdentifier)

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

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

GetPrecision(IProperty, StoreObjectIdentifier)

來源:
RelationalPropertyExtensions.cs

取得此性質允許的資料精確度。 例如,若性質為 a 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 如果沒有,則是。

適用於

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

取得此性質允許的資料精確度。 例如,若性質為 a 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 如果沒有,則是。

適用於