Поделиться через


CoreStrings.AmbiguousForeignKeyPropertyCandidates Метод

Определение

Обе связи между "{firstDependentToPrincipalNavigationSpecification}" и "{firstPrincipalToDependentNavigationSpecification}" и между "{secondDependentToPrincipalNavigationSpecification}" и "{secondPrincipalToDependentNavigationSpecification}" могут использовать {foreignKeyProperties} в качестве внешнего ключа. Чтобы устранить эту проблему, явно настройте свойства внешнего ключа в OnModelCreating по крайней мере для одной из связей.

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

Параметры

firstDependentToPrincipalNavigationSpecification
Object
firstPrincipalToDependentNavigationSpecification
Object
secondDependentToPrincipalNavigationSpecification
Object
secondPrincipalToDependentNavigationSpecification
Object
foreignKeyProperties
Object

Возвращаемое значение

Применяется к