RelationalPropertyExtensions.GetScale 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetScale(IReadOnlyProperty, StoreObjectIdentifier) |
取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。 |
| GetScale(IProperty, StoreObjectIdentifier) |
取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。 |
GetScale(IReadOnlyProperty, StoreObjectIdentifier)
取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。
public static int? GetScale(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetScale : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetScale (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)
參數
- property
- IReadOnlyProperty
屬性。
- storeObject
- StoreObjectIdentifier
包含欄位的類表格儲存物件的識別碼。
傳回
尺度,或者 null 如果沒有,則是定義的。
適用於
GetScale(IProperty, StoreObjectIdentifier)
取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。
public static int? GetScale(this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetScale : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> Nullable<int>
<Extension()>
Public Function GetScale (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As Nullable(Of Integer)
參數
- property
- IProperty
屬性。
- storeObject
- StoreObjectIdentifier
包含欄位的類表格儲存物件的識別碼。
傳回
尺度,或者 null 如果沒有,則是定義的。