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

适用于