CoreStrings.UnknownKeyValue(Object, Object) Method

Definition

The value of '{entityType}.{property}' is unknown when attempting to save changes. This is because the property is also part of a foreign key for which the principal entity in the relationship is not known.

C#
public static string UnknownKeyValue (object entityType, object property);
C#
public static string UnknownKeyValue (object? entityType, object? property);

Parameters

entityType
Object
property
Object

Returns

Applies to

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