語言

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

傳回

適用於