Sprache

CoreStrings.AmbiguousForeignKeyPropertyCandidates Methode

Definition

Beide Beziehungen zwischen '{firstDependentToPrincipalNavigationSpecification}' und '{firstPrincipalToDependentNavigationSpecification}' und zwischen '{secondDependentToPrincipalNavigationSpecification}' und '{secondPrincipalToDependentNavigationSpecification}' können {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: