CoreStrings.AmbiguousOneToOneRelationship(Object, Object) Method

Definition

The dependent side could not be determined for the one-to-one relationship between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship, configure them independently via separate method chains in 'OnModelCreating'. See https://go.microsoft.com/fwlink/?LinkId=724062 for more details.

C#
public static string AmbiguousOneToOneRelationship (object dependentToPrincipalNavigationSpecification, object principalToDependentNavigationSpecification);
C#
public static string AmbiguousOneToOneRelationship (object? dependentToPrincipalNavigationSpecification, object? principalToDependentNavigationSpecification);

Parameters

dependentToPrincipalNavigationSpecification
Object
principalToDependentNavigationSpecification
Object

Returns

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0