CoreStrings.KeyPropertyCannotBeNullable(Object, Object, Object) Method

Definition

The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because it has been included in the key {keyProperties}.

C#
public static string KeyPropertyCannotBeNullable (object property, object entityType, object key);
C#
public static string KeyPropertyCannotBeNullable (object property, object entityType, object keyProperties);
C#
public static string KeyPropertyCannotBeNullable (object? property, object? entityType, object? keyProperties);

Parameters

property
Object
entityType
Object
keykeyProperties
Object

Returns

Applies to

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