Share via


CoreStrings.IdentityConflict(Object, Object) Method

Definition

The instance of entity type '{entityType}' cannot be tracked because another instance with the same key value for {keyProperties} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

public static string IdentityConflict (object entityType, object keyProperties);
public static string IdentityConflict (object? entityType, object? keyProperties);
static member IdentityConflict : obj * obj -> string
Public Shared Function IdentityConflict (entityType As Object, keyProperties As Object) As String

Parameters

entityType
Object
keyProperties
Object

Returns

Applies to