RuntimeElementType 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示集合屬性的專案。
public class RuntimeElementType : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.IElementType
type RuntimeElementType = class
inherit AnnotatableBase
interface IElementType
interface IReadOnlyElementType
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Class RuntimeElementType
Inherits AnnotatableBase
Implements IElementType
- 繼承
- 實作
備註
如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。
建構函式
RuntimeElementType(Type, RuntimeProperty, Boolean, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Type, ValueConverter, ValueComparer, JsonValueReaderWriter, CoreTypeMapping) |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
屬性
ClrType |
集合中項目的類型。 |
CollectionProperty |
取得這個 表示專案的集合屬性。 |
DebugView |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
IsNullable |
取得值,指出集合的專案是否可以是 |
IsReadOnly |
指出目前物件是否為唯讀。 (繼承來源 AnnotatableBase) |
Item[String] |
取得具有指定名稱的值批註,如果不存在,則 |
方法
明確介面實作
擴充方法
FindRelationalTypeMapping(IReadOnlyElementType) |
傳 RelationalTypeMapping 回已完成模型上指定專案的 。 |
GetRelationalTypeMapping(IReadOnlyElementType) |
傳 RelationalTypeMapping 回已完成模型上指定專案的 。 |
GetStoreType(IElementType) |
傳回專案的資料庫類型。 |
GetStoreType(IReadOnlyElementType) |
傳回元素的資料庫類型,如果找不到資料庫類型,則 |
IsFixedLength(IReadOnlyElementType) |
傳回旗標,指出專案是否能夠只儲存固定長度的資料,例如字串。 |
IsFixedLength(IReadOnlyElementType, StoreObjectIdentifier) |
傳回旗標,指出專案是否能夠只儲存固定長度的資料,例如字串。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應