CoreStrings.MutableKeyProperty(Object) Method

Definition

The property '{keyProperty}' cannot be configured as 'ValueGeneratedOnUpdate' or 'ValueGeneratedOnAddOrUpdate' because it's part of a key and its value cannot be changed after the entity has been added to the store.

C#
public static string MutableKeyProperty (object keyProperty);
C#
public static string MutableKeyProperty (object? keyProperty);

Parameters

keyProperty
Object

Returns

Applies to

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