IMutableEntityTypeMappingFragment 介面

定義

表示特定類似資料表的存放區物件的實體類型對應。

public interface IMutableEntityTypeMappingFragment : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityTypeMappingFragment
type IMutableEntityTypeMappingFragment = interface
    interface IReadOnlyEntityTypeMappingFragment
    interface IReadOnlyAnnotatable
    interface IMutableAnnotatable
Public Interface IMutableEntityTypeMappingFragment
Implements IMutableAnnotatable, IReadOnlyEntityTypeMappingFragment
實作

備註

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

屬性

EntityType

取得定義片段的實體類型。

IsTableExcludedFromMigrations

取得或設定值,指出移轉是否忽略相關聯的資料表。

Item[String]

取得或設定具有指定名稱之注釋的值。

(繼承來源 IMutableAnnotatable)
StoreObject

取得套用組態的存放區物件。

(繼承來源 IReadOnlyEntityTypeMappingFragment)

方法

AddAnnotation(String, Object)

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IMutableAnnotatable)
AddAnnotations(IEnumerable<IAnnotation>)

將批註加入物件。

(繼承來源 IMutableAnnotatable)
AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(繼承來源 IMutableAnnotatable)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IMutableAnnotatable)
RemoveAnnotation(String)

從這個 物件中移除指定的注釋。

(繼承來源 IMutableAnnotatable)
SetAnnotation(String, Object)

設定儲存在指定索引鍵底下的注釋。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

(繼承來源 IMutableAnnotatable)
SetOrRemoveAnnotation(String, Object)

設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 如果 null 已提供,則移除現有的批註。

(繼承來源 IMutableAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

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

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

(繼承來源 IReadOnlyEntityTypeMappingFragment)

擴充方法

IsSqlReturningClauseUsed(IReadOnlyEntityTypeMappingFragment)

傳回值,指出儲存變更至資料表時是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

UseSqlReturningClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

設定值,指出儲存變更至資料表時是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

IsSqlOutputClauseUsed(IReadOnlyEntityTypeMappingFragment)

傳回值,指出將變更儲存至相關聯的資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與某些SQL Server功能不相容,例如具有觸發程式的資料表。

UseSqlOutputClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

設定是否要在將變更儲存至相關聯的資料表時使用 SQL OUTPUT 子句。 OUTPUT 子句與某些SQL Server功能不相容,例如具有觸發程式的資料表。

適用於