IMutableForeignKey.GetRelatedEntityType(IReadOnlyEntityType) 方法

定义

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

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

参数

entityType
IReadOnlyEntityType

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

返回

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

适用于