IReadOnlyElementType 介面

定義

表示集合屬性的專案。

public interface IReadOnlyElementType : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlyElementType = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlyElementType
Implements IReadOnlyAnnotatable
衍生
實作

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

ClrType

集合中項目的類型。

CollectionProperty

取得這個 表示專案的集合屬性。

IsNullable

取得值,指出集合的專案是否可以是 null

Item[String]

取得具有指定名稱之注釋的值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)

方法

AnnotationsToDebugString(Int32)

取得 物件上宣告之所有注釋的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindTypeMapping()

傳回集合專案的型別對應。

GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetJsonValueReaderWriter()

取得要用於集合元素的 型 JsonValueReaderWriter<TValue> 別。

GetMaxLength()

取得集合元素中允許的資料長度上限。 例如,如果專案類型為 String ,則這是字元數上限。

GetPrecision()

取得集合元素中允許的資料精確度。 例如,如果專案類型為 Decimal ,則這是數位數上限。

GetProviderClrType()

取得在傳送至資料庫提供者之前,集合的專案會轉換成的類型。

GetScale()

取得集合的這個元素中允許的資料小數位數。 例如,如果專案類型為 Decimal ,則這是小數位數的最大數目。

GetTypeMapping()

CoreTypeMapping從完成的模型傳回集合專案的 。

GetValueComparer()

取得集合專案的自訂 ValueComparer

GetValueConverter()

取得集合中這個元素的自訂 ValueConverter

IsUnicode()

取得值,指出集合的專案是否可以保存 Unicode 字元。

ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

擴充方法

FindRelationalTypeMapping(IReadOnlyElementType)

RelationalTypeMapping 回已完成模型上指定專案的 。

GetRelationalTypeMapping(IReadOnlyElementType)

RelationalTypeMapping 回已完成模型上指定專案的 。

GetStoreType(IReadOnlyElementType)

傳回元素的資料庫類型,如果找不到資料庫類型,則 null 傳回 。

IsFixedLength(IReadOnlyElementType)

傳回旗標,指出專案是否能夠只儲存固定長度的資料,例如字串。

IsFixedLength(IReadOnlyElementType, StoreObjectIdentifier)

傳回旗標,指出專案是否能夠只儲存固定長度的資料,例如字串。

適用於