RelationalStrings.DuplicateKeyTableMismatch Method

Definition

The keys {keyProperties1} on '{entityType1}' and {keyProperties2} on '{entityType2}' are both mapped to '{keyName}', but on different tables ('{table1}' and '{table2}').

C#
public static string DuplicateKeyTableMismatch (object keyProperties1, object entityType1, object keyProperties2, object entityType2, object keyName, object table1, object table2);
C#
public static string DuplicateKeyTableMismatch (object? keyProperties1, object? entityType1, object? keyProperties2, object? entityType2, object? keyName, object? table1, object? table2);

Parameters

keyProperties1
Object
entityType1
Object
keyProperties2
Object
entityType2
Object
keyName
Object
table1
Object
table2
Object

Returns

Applies to

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