CoreStrings.AmbiguousForeignKeyPropertyCandidates 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
'{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