CoreStrings.SeedDatumDuplicate(Object, Object) 方法

定义

无法添加实体类型“{entityType}”的种子实体,因为已添加与 {keyProperties} 键值相同的另一个种子实体。 请考虑使用“DbContextOptionsBuilder.EnableSensitiveDataLogging”查看冲突的键值。

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

参数

entityType
Object
keyProperties
Object

返回

适用于