共用方式為


InversePropertyAttributeConvention.IsAmbiguous 方法

定義

傳回值,指出指定的導覽是否具有 InversePropertyAttribute 模棱兩可的反轉導覽。

public static bool IsAmbiguous (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Reflection.MemberInfo navigation, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType targetEntityType);
static member IsAmbiguous : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> bool
Public Shared Function IsAmbiguous (entityType As IConventionEntityType, navigation As MemberInfo, targetEntityType As IConventionEntityType) As Boolean

參數

entityType
IConventionEntityType

實體類型。

navigation
MemberInfo

導覽。

targetEntityType
IConventionEntityType

目標實體類型。

傳回

true 如果指定的導覽具有模棱兩可的反向導覽,則為 InversePropertyAttribute

適用於