RelationalStrings.DuplicateSeedData(Object, Object) Method
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.
A seed entity for entity type '{entityType}' has the same key value as another seed entity mapped to the same table '{table}'. Key values should be unique across seed entities. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values.
public static string DuplicateSeedData (object? entityType, object? table);
static member DuplicateSeedData : obj * obj -> string
Public Shared Function DuplicateSeedData (entityType As Object, table As Object) As String
- entityType
- Object
- table
- Object
Product | Versions |
---|---|
Entity Framework Core | 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: