共用方式為


IForeignKey.GetRelatedEntityType(IReadOnlyEntityType) 方法

定義

取得與指定實體類型相關的實體類型。

public virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType GetRelatedEntityType (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
abstract member GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Overridable Function GetRelatedEntityType (entityType As IReadOnlyEntityType) As IEntityType

參數

entityType
IReadOnlyEntityType

外鍵相關的其中一個實體類型。

傳回

與指定實體類型相關的實體類型。

適用於