語言

ReferenceCollectionBuilderBase 類別

定義

提供一個簡單的 API,用於配置一對多關係。

這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。

public class ReferenceCollectionBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.IMutableModel>, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>
type ReferenceCollectionBuilderBase = class
    interface IInfrastructure<IMutableModel>
    interface IInfrastructure<InternalRelationshipBuilder>
Public Class ReferenceCollectionBuilderBase
Implements IInfrastructure(Of IMutableModel), IInfrastructure(Of InternalRelationshipBuilder)
繼承
ReferenceCollectionBuilderBase
衍生
實作
IInfrastructure<IMutableModel> IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>

建構函式

名稱 Description
ReferenceCollectionBuilderBase(EntityType, EntityType, InternalRelationshipBuilder)

此 API 支援 Entity Framework Core 基礎架構,並非設計用來直接從您的程式碼中使用。 此 API 可能會在未來版本中變更或移除。

ReferenceCollectionBuilderBase(InternalRelationshipBuilder, ReferenceCollectionBuilderBase, Boolean, Boolean, Boolean)

此 API 支援 Entity Framework Core 基礎架構,並非設計用來直接從您的程式碼中使用。 此 API 可能會在未來版本中變更或移除。

屬性

名稱 Description
Builder

此 API 支援 Entity Framework Core 基礎架構,並非設計用來直接從您的程式碼中使用。 此 API 可能會在未來版本中變更或移除。

DependentEntityType

取得用於配置此關係的相依實體類型。

Metadata

代表這種關係的外鍵。

PrincipalEntityType

取得用於配置此關係的主要實體類型。

明確介面實作

名稱 Description
IInfrastructure<IMutableModel>.Instance

這段關係所屬的模式。

IInfrastructure<InternalRelationshipBuilder>.Instance

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

擴充方法

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

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

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

適用於