CoreStrings.IdentityConflict(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework