語言

IRelationalPropertyOverrides 介面

定義

代表特定類資料表儲存物件的屬性面覆寫。

public interface IRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides
type IRelationalPropertyOverrides = interface
    interface IReadOnlyRelationalPropertyOverrides
    interface IReadOnlyAnnotatable
    interface IAnnotatable
Public Interface IRelationalPropertyOverrides
Implements IAnnotatable, IReadOnlyRelationalPropertyOverrides
衍生
實作

備註

更多資訊與範例請參閱 建模實體類型與關係 。

屬性

名稱 Description
ColumnName

取得該屬性在針對指定的類資料表儲存物件時所對應的欄位。

(繼承來源 IReadOnlyRelationalPropertyOverrides)
IsColumnNameOverridden

會獲得一個值,表示欄位名稱是否被覆寫。

(繼承來源 IReadOnlyRelationalPropertyOverrides)
Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
Property

取得覆蓋權限所屬的屬性。

StoreObject

這些覆蓋的表格式儲存物件的 ID。

(繼承來源 IReadOnlyRelationalPropertyOverrides)

方法

名稱 Description
AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得物件上所有宣告註解的除錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

取得帶有名稱的執行時註解,若不存在則回 null 傳。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得執行時註解的值,若名稱不存在則回 null 傳。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得帶有名稱的註解,若不存在則拋出。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 IReadOnlyAnnotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得帶有名稱的執行時註解值,若不存在則加入該註解。

(繼承來源 IAnnotatable)
GetRuntimeAnnotations()

取得目前物件上的所有執行時註解。

(繼承來源 IAnnotatable)
RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

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

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

(繼承來源 IReadOnlyRelationalPropertyOverrides)

擴充方法

名稱 Description
GetIdentityIncrement(IReadOnlyRelationalPropertyOverrides)

回傳身份遞增。

GetIdentitySeed(IReadOnlyRelationalPropertyOverrides)

回傳身份種子。

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

將該 SqliteValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

適用於