語言

RuntimeRelationalPropertyOverrides 類別

定義

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

[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides
public class RuntimeRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRelationalPropertyOverrides
public class RuntimeRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeRelationalPropertyOverrides = class
    inherit AnnotatableBase
    interface IRelationalPropertyOverrides
    interface IReadOnlyRelationalPropertyOverrides
    interface IReadOnlyAnnotatable
    interface IAnnotatable
type RuntimeRelationalPropertyOverrides = class
    inherit AnnotatableBase
    interface IRelationalPropertyOverrides
    interface IAnnotatable
    interface IReadOnlyAnnotatable
type RuntimeRelationalPropertyOverrides = class
    inherit AnnotatableBase
    interface IRelationalPropertyOverrides
    interface IReadOnlyRelationalPropertyOverrides
    interface IReadOnlyAnnotatable
    interface IAnnotatable
Public Class RuntimeRelationalPropertyOverrides
Inherits AnnotatableBase
Implements IRelationalPropertyOverrides
繼承
RuntimeRelationalPropertyOverrides
屬性
實作
IAnnotatable IReadOnlyAnnotatable IReadOnlyRelationalPropertyOverrides IRelationalPropertyOverrides Microsoft.EntityFrameworkCore.Metadata.Internal.IRelationalPropertyOverrides

備註

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

建構函式

名稱 Description
RuntimeRelationalPropertyOverrides(RuntimeProperty, Boolean, String)

初始化 RuntimeRelationalPropertyOverrides 類別的新執行個體。

RuntimeRelationalPropertyOverrides(RuntimeProperty, StoreObjectIdentifier, Boolean, String)

初始化 RuntimeRelationalPropertyOverrides 類別的新執行個體。

屬性

名稱 Description
DebugView

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

IsReadOnly

表示目前物件是否為唯讀。

(繼承來源 AnnotatableBase)
Item[String]

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

(繼承來源 AnnotatableBase)
Property

取得套用覆蓋的屬性。

StoreObject

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

方法

名稱 Description
AddAnnotation(String, Annotation)

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

(繼承來源 AnnotatableBase)
AddAnnotation(String, Object)

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

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

為此物件新增註解。

(繼承來源 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

為此物件新增註解。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

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

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

為此物件新增執行時註解。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

為此物件新增執行時註解。

(繼承來源 AnnotatableBase)
CreateAnnotation(String, Object)

建立新的註解。

(繼承來源 AnnotatableBase)
CreateRuntimeAnnotation(String, Object)

建立新的執行時註解。

(繼承來源 AnnotatableBase)
EnsureMutable()

如果模型是唯讀,則會拋出。

(繼承來源 AnnotatableBase)
EnsureReadOnly()

若模型非唯讀,則會擲出。

(繼承來源 AnnotatableBase)
FindAnnotation(String)

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

(繼承來源 AnnotatableBase)
FindRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
GetAnnotation(String)

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

(繼承來源 AnnotatableBase)
GetAnnotations()

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

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

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

(繼承來源 AnnotatableBase)
GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

當註解被設定或移除時會被呼叫。

(繼承來源 AnnotatableBase)
RemoveAnnotation(String)

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

(繼承來源 AnnotatableBase)
RemoveRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
SetAnnotation(String, Annotation, Annotation)

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

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

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

(繼承來源 AnnotatableBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

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

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

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

(繼承來源 AnnotatableBase)
ToString()

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

明確介面實作

名稱 Description
IAnnotatable.AddRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

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

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

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.FindAnnotation(String)

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

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

(繼承來源 AnnotatableBase)
IReadOnlyRelationalPropertyOverrides.ColumnName

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

IReadOnlyRelationalPropertyOverrides.IsColumnNameOverridden

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

IReadOnlyRelationalPropertyOverrides.Property

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

IRelationalPropertyOverrides.ColumnName

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

IRelationalPropertyOverrides.ColumnNameOverriden

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

IRelationalPropertyOverrides.Property

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

擴充方法

名稱 Description
AnnotationsToDebugString(IAnnotatable, Int32)

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

GetIdentityIncrement(IReadOnlyRelationalPropertyOverrides)

回傳身份遞增。

GetIdentitySeed(IReadOnlyRelationalPropertyOverrides)

回傳身份種子。

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

將該 SqliteValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

適用於