EntityTypeExtensions.IsInOwnershipPath(IEntityType, IEntityType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示给定的实体类型是否在此实体类型的所有权路径中。
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
。