Freigeben über


CoreStrings.AmbiguousForeignKeyPropertyCandidates Methode

Definition

Sowohl beziehungen zwischen '{firstDependentToPrincipalNavigationSpecification}' und '{firstPrincipalToDependentNavigationSpecification}' als auch zwischen '{secondDependentToPrincipalNavigationSpecification}' und '{secondPrincipalToDependentNavigationSpecification}' könnten {foreignKeyProperties} als Fremdschlüssel verwenden. Um dies zu beheben, konfigurieren Sie die Fremdschlüsseleigenschaften explizit in "OnModelCreating" für mindestens eine der Beziehungen.

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

Parameter

firstDependentToPrincipalNavigationSpecification
Object
firstPrincipalToDependentNavigationSpecification
Object
secondDependentToPrincipalNavigationSpecification
Object
secondPrincipalToDependentNavigationSpecification
Object
foreignKeyProperties
Object

Gibt zurück

Gilt für: