CoreStrings.SeedDatumDuplicate(Object, Object) Method

Definition

The seed entity for entity type '{entityType}' cannot be added because another seed entity with the same key value for {keyProperties} has already been added. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

C#
public static string SeedDatumDuplicate (object entityType, object keyProperties);
C#
public static string SeedDatumDuplicate (object? entityType, object? keyProperties);

Parameters

entityType
Object
keyProperties
Object

Returns

Applies to

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