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

適用於