InversePropertyAttributeConvention.IsAmbiguous 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值指示,表示給定導航是否存在與 的歧義逆導航。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。