IReadOnlyForeignKey.GetRelatedEntityType(IReadOnlyEntityType) 方法

定義

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

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

參數

entityType
IReadOnlyEntityType

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

傳回

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

適用於