RuntimeForeignKey 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一種關係,由依賴實體類型上的屬性組成的外鍵,參考主實體類型中對應的主鍵或備用鍵。
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeForeignKey : Microsoft.EntityFrameworkCore.Infrastructure.RuntimeAnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey
public class RuntimeForeignKey : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeForeignKey : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeForeignKey = class
inherit RuntimeAnnotatableBase
interface IRuntimeForeignKey
interface IForeignKey
interface IReadOnlyForeignKey
interface IReadOnlyAnnotatable
interface IAnnotatable
type RuntimeForeignKey = class
inherit AnnotatableBase
interface IRuntimeForeignKey
interface IForeignKey
interface IReadOnlyForeignKey
interface IReadOnlyAnnotatable
interface IAnnotatable
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeForeignKey = class
inherit AnnotatableBase
interface IRuntimeForeignKey
interface IForeignKey
interface IReadOnlyForeignKey
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Class RuntimeForeignKey
Inherits RuntimeAnnotatableBase
Implements IRuntimeForeignKey
Public Class RuntimeForeignKey
Inherits AnnotatableBase
Implements IRuntimeForeignKey
- 繼承
- 繼承
- 屬性
- 實作
-
IAnnotatable IReadOnlyAnnotatable IForeignKey Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey IReadOnlyForeignKey
備註
更多資訊與範例請參閱 建模實體類型與關係 。
建構函式
| 名稱 | Description |
|---|---|
| RuntimeForeignKey(IReadOnlyList<RuntimeProperty>, RuntimeKey, RuntimeEntityType, RuntimeEntityType, DeleteBehavior, Boolean, Boolean, Boolean, Boolean, Boolean) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
| RuntimeForeignKey(IReadOnlyList<RuntimeProperty>, RuntimeKey, RuntimeEntityType, RuntimeEntityType, DeleteBehavior, Boolean, Boolean, Boolean, Boolean) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
屬性
| 名稱 | Description |
|---|---|
| DebugView |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
| DeclaringEntityType |
取得受依存實體類型。 這可能與定義在繼承階層中的衍生型態時所定義的型別 Properties 不同(因為屬性可能定義在基底型態上)。 |
| IsReadOnly |
表示目前物件是否為唯讀。 (繼承來源 AnnotatableBase) |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| PrincipalEntityType |
取得此關係所針對的主要實體類型。 這可能與當關係針對繼承階層中的衍生型別時所定義的型 PrincipalKey 別不同(因為金鑰定義在階層的基底型態上)。 |
| PrincipalKey |
他會得到這段關係的主要或替代關鍵。 |
| Properties |
取得依賴實體中的外鍵屬性。 |
| ReferencingSkipNavigations |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |