Partager via


CoreStrings.AmbiguousForeignKeyPropertyCandidates Méthode

Définition

Les relations entre « {firstDependentToPrincipalNavigationSpecification} » et « {firstPrincipalToDependentNavigationSpecification} » et entre « {secondDependentToPrincipalNavigationSpecification} » et « {secondPrincipalToDependentNavigationSpecification} » peuvent utiliser {foreignKeyProperties} comme clé étrangère. Pour résoudre ce problème, configurez explicitement les propriétés de clé étrangère dans « OnModelCreating » sur au moins l’une des relations.

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

Paramètres

firstDependentToPrincipalNavigationSpecification
Object
firstPrincipalToDependentNavigationSpecification
Object
secondDependentToPrincipalNavigationSpecification
Object
secondPrincipalToDependentNavigationSpecification
Object
foreignKeyProperties
Object

Retours

S’applique à