共用方式為


CoreStrings.AmbiguousForeignKeyPropertyCandidates 方法

定義

'{firstDependentToPrincipalNavigationSpecification}' 和 '{firstPrincipalToDependentNavigationSpecification}' 和 '{secondDependentToPrincipalNavigationSpecification}' 和 '{secondPrincipalToDependentNavigationSpecification}' 之間的關聯性,都可以使用 {foreignKeyProperties} 作為外鍵。 若要解決此問題,請在至少其中一個關聯性上,在 'OnModelCreating' 中明確設定外鍵屬性。

public static string AmbiguousForeignKeyPropertyCandidates (object firstDependentToPrincipalNavigationSpecification, object firstPrincipalToDependentNavigationSpecification, object secondDependentToPrincipalNavigationSpecification, object secondPrincipalToDependentNavigationSpecification, object foreignKeyProperties);
public static string AmbiguousForeignKeyPropertyCandidates (object? firstDependentToPrincipalNavigationSpecification, object? firstPrincipalToDependentNavigationSpecification, object? secondDependentToPrincipalNavigationSpecification, object? secondPrincipalToDependentNavigationSpecification, object? foreignKeyProperties);
static member AmbiguousForeignKeyPropertyCandidates : obj * obj * obj * obj * obj -> string
Public Shared Function AmbiguousForeignKeyPropertyCandidates (firstDependentToPrincipalNavigationSpecification As Object, firstPrincipalToDependentNavigationSpecification As Object, secondDependentToPrincipalNavigationSpecification As Object, secondPrincipalToDependentNavigationSpecification As Object, foreignKeyProperties As Object) As String

參數

firstDependentToPrincipalNavigationSpecification
Object
firstPrincipalToDependentNavigationSpecification
Object
secondDependentToPrincipalNavigationSpecification
Object
secondPrincipalToDependentNavigationSpecification
Object
foreignKeyProperties
Object

傳回

適用於