EntityTypeExtensions.IsInOwnershipPath(IEntityType, IEntityType) 方法

定义

获取一个值,该值指示给定的实体类型是否在此实体类型的所有权路径中。

public static bool IsInOwnershipPath (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType targetType);
static member IsInOwnershipPath : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
<Extension()>
Public Function IsInOwnershipPath (entityType As IEntityType, targetType As IEntityType) As Boolean

参数

entityType
IEntityType

实体类型。

targetType
IEntityType

要在所有权路径中搜索的实体类型。

返回

true 如果 targetType 位于 的 entityType所有权路径中,则为 ,否则为 false

适用于