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>

建構函式

ReferenceCollectionBuilderBase(EntityType, EntityType, InternalRelationshipBuilder)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

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

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

屬性

Builder

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

DependentEntityType

取得用來設定此關聯性的相依實體類型。

Metadata

表示這個關聯性的外鍵。

PrincipalEntityType

取得用來設定此關聯性的主體實體類型。

明確介面實作

IInfrastructure<IMutableModel>.Instance

這個關聯性所屬的模型。

IInfrastructure<InternalRelationshipBuilder>.Instance

取得用來設定此關聯性的內部產生器。

擴充方法

GetInfrastructure<T>(IInfrastructure<T>)

從使用 IInfrastructure<T> 隱藏的屬性取得值。

這個方法通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

適用於