Sdílet prostřednictvím


CoreStrings.AmbiguousForeignKeyPropertyCandidates Metoda

Definice

Obě relace mezi {firstDependentToPrincipalNavigationSpecification} a {firstPrincipalToDependentNavigationSpecification} a mezi {secondDependentToPrincipalNavigationSpecification} a {secondPrincipalToDependentNavigationSpecification} mohou jako cizí klíč používat {foreignKeyProperties}. Chcete-li tento problém vyřešit, nakonfigurujte vlastnosti cizího klíče explicitně v 'OnModelCreating' alespoň u jedné z relací.

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

Parametry

firstDependentToPrincipalNavigationSpecification
Object
firstPrincipalToDependentNavigationSpecification
Object
secondDependentToPrincipalNavigationSpecification
Object
secondPrincipalToDependentNavigationSpecification
Object
foreignKeyProperties
Object

Návraty

Platí pro