Udostępnij za pośrednictwem


CoreStrings.AmbiguousForeignKeyPropertyCandidates Metoda

Definicja

Obie relacje między elementami "{firstDependentToPrincipalNavigationSpecification}" i "{firstPrincipalToDepenncipalToDependentNavigationSpecification}" i "{secondPrincipalNavigationSpecification}" i "{secondPrincipalToDependentNavigationSpecification}" mogą używać elementu {foreignKeyProperties} jako klucza obcego. Aby rozwiązać ten problem, skonfiguruj jawnie właściwości klucza obcego w obszarze "OnModelCreating" w co najmniej jednej relacji.

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

Zwraca

Dotyczy