CoreStrings.ForeignKeyCountMismatch(Object, Object, Object, Object) Method

Definition

The number of properties specified for the foreign key {foreignKeyProperties} on entity type '{dependentType}' does not match the number of properties in the principal key {principalKeyProperties} on entity type '{principalType}'.

C#
public static string ForeignKeyCountMismatch (object foreignKey, object dependentType, object principalKey, object principalType);
C#
public static string ForeignKeyCountMismatch (object foreignKeyProperties, object dependentType, object principalKey, object principalType);
C#
public static string ForeignKeyCountMismatch (object? foreignKeyProperties, object? dependentType, object? principalKeyProperties, object? principalType);

Parameters

foreignKeyforeignKeyProperties
Object
dependentType
Object
principalKeyprincipalKeyProperties
Object
principalType
Object

Returns

Applies to

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