IReadOnlyEntityType.IsInOwnershipPath(IReadOnlyEntityType) 方法

定义

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

public virtual bool IsInOwnershipPath (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType targetType);
abstract member IsInOwnershipPath : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> bool
override this.IsInOwnershipPath : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> bool
Public Overridable Function IsInOwnershipPath (targetType As IReadOnlyEntityType) As Boolean

参数

targetType
IReadOnlyEntityType

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

返回

true 如果 targetType 在此实体类型的所有权路径中,则为 ;否则为 false

适用于