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

与外键相关的实体类型之一。

返回

与给定实体类型相关的实体类型。

适用于