Share via


CoreStrings.IdentityConflictOwned(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 replacing owned entities, modify the properties without changing the instance or detach the previous owned entity entry first. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

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

Parameters

entityType
Object
keyProperties
Object

Returns

Applies to