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 為 。

適用於