RuntimeEntityTypeMappingFragment 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示特定類似資料表的存放區物件的實體類型對應。
public class RuntimeEntityTypeMappingFragment : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment
type RuntimeEntityTypeMappingFragment = class
inherit AnnotatableBase
interface IEntityTypeMappingFragment
interface IReadOnlyEntityTypeMappingFragment
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Class RuntimeEntityTypeMappingFragment
Inherits AnnotatableBase
Implements IEntityTypeMappingFragment
- 繼承
- 實作
備註
如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。
建構函式
RuntimeEntityTypeMappingFragment(RuntimeEntityType, StoreObjectIdentifier, Nullable<Boolean>) |
初始化 RuntimeEntityTypeMappingFragment 類別的新執行個體。 |
屬性
DebugView |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
EntityType |
取得定義片段的實體類型。 |
IsReadOnly |
指出目前物件是否為唯讀。 (繼承來源 AnnotatableBase) |
IsTableExcludedFromMigrations |
取得值,指出移轉是否忽略相關聯的資料表。 |
Item[String] |
取得具有指定名稱的值批註,如果不存在,則傳 |
StoreObject |
取得套用組態的存放區物件。 |
方法
明確介面實作
IAnnotatable.AddRuntimeAnnotation(String, Object) |
將執行時間批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。 (繼承來源 AnnotatableBase) |
IAnnotatable.FindRuntimeAnnotation(String) |
取得具有指定名稱的執行時間批註,如果不存在,則傳 |
IAnnotatable.GetRuntimeAnnotations() |
取得目前 物件上的所有執行時間批註。 (繼承來源 AnnotatableBase) |
IAnnotatable.RemoveRuntimeAnnotation(String) |
從這個 物件中移除指定的執行時間批註。 (繼承來源 AnnotatableBase) |
IAnnotatable.SetRuntimeAnnotation(String, Object) |
設定儲存在指定索引鍵下的執行時間批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 (繼承來源 AnnotatableBase) |
IEntityTypeMappingFragment.EntityType |
取得定義片段的實體類型。 |
IReadOnlyAnnotatable.FindAnnotation(String) |
取得具有指定名稱的注釋,如果不存在,則傳 |
IReadOnlyAnnotatable.GetAnnotations() |
取得目前 物件上的所有批註。 (繼承來源 AnnotatableBase) |
IReadOnlyAnnotatable.Item[String] |
取得具有指定名稱的注釋值,如果不存在,則傳 |
IReadOnlyEntityTypeMappingFragment.EntityType |
取得定義片段的實體類型。 |
擴充方法
IsSqlReturningClauseUsed(IReadOnlyEntityTypeMappingFragment) |
傳回值,指出儲存變更至資料表時是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。 |
IsSqlOutputClauseUsed(IReadOnlyEntityTypeMappingFragment) |
傳回值,指出將變更儲存至相關聯的資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與某些SQL Server功能不相容,例如具有觸發程式的資料表。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應