Share via


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が の所有権パスentityTypeにある場合targetTypeは 。それ以外の場合falseは 。

適用対象