語言

RelationshipBuilderBase 類別

定義

用於配置關係的基底類別。

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class RelationshipBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder>
public abstract class RelationshipBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>
public abstract class RelationshipBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder>
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationshipBuilderBase = class
    interface IInfrastructure<IConventionForeignKeyBuilder>
type RelationshipBuilderBase = class
    interface IInfrastructure<InternalRelationshipBuilder>
type RelationshipBuilderBase = class
    interface IInfrastructure<IConventionForeignKeyBuilder>
Public MustInherit Class RelationshipBuilderBase
Implements IInfrastructure(Of IConventionForeignKeyBuilder)
Public MustInherit Class RelationshipBuilderBase
Implements IInfrastructure(Of InternalRelationshipBuilder)
繼承
RelationshipBuilderBase
衍生
屬性
實作
IInfrastructure<IConventionForeignKeyBuilder> IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>

備註

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

建構函式

名稱 Description
RelationshipBuilderBase(IMutableEntityType, IMutableEntityType, IMutableForeignKey)

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

RelationshipBuilderBase(InternalForeignKeyBuilder, RelationshipBuilderBase, Boolean, Boolean, Boolean)

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

RelationshipBuilderBase(InternalRelationshipBuilder, RelationshipBuilderBase, Boolean, Boolean, Boolean)

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

屬性

名稱 Description
Builder

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

DependentEntityType

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

Metadata

代表這種關係的外鍵。

PrincipalEntityType

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

明確介面實作

名稱 Description
IInfrastructure<IConventionForeignKeyBuilder>.Instance

取得用來配置此關係的內部建構器。

IInfrastructure<InternalRelationshipBuilder>.Instance

取得用來配置此關係的內部建構器。

擴充方法

名稱 Description
GetInfrastructure<T>(IInfrastructure<T>)

從一個被隱藏的屬性中取得價值 IInfrastructure<T>。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

適用於