CoreStrings.NavigationForWrongForeignKey Method

Definition

The navigation '{1_entityType}.{0_navigation}' cannot be associated with foreign key {targetForeignKeyProperties} because it was created for foreign key {actualForeignKeyProperties}.

C#
public static string NavigationForWrongForeignKey (object navigation, object entityType, object targetFk, object actualFk);
C#
public static string NavigationForWrongForeignKey (object? navigation, object? entityType, object? targetForeignKeyProperties, object? actualForeignKeyProperties);

Parameters

navigation
Object
entityType
Object
targetFktargetForeignKeyProperties
Object
actualFkactualForeignKeyProperties
Object

Returns

Applies to

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