語言

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。

適用於