語言

CoreStrings.SeedDatumNavigation(Object, Object, Object, Object) 方法

定義

實體類型 '{entityType}' 的種子實體無法新增,因為它已設定導覽「{navigation}'。 要建立關聯,請將實體種子加入 '{relatedEntityType}'',並指定外鍵值 {foreignKeyProperties}。 可以考慮使用 'DbContextOptionsBuilder.EnableSensitiveDataLogging' 來查看相關的屬性值。

public static string SeedDatumNavigation(object? entityType, object? navigation, object? relatedEntityType, object? foreignKeyProperties);
public static string SeedDatumNavigation(object entityType, object navigation, object relatedEntityType, object foreignKeyProperties);
static member SeedDatumNavigation : obj * obj * obj * obj -> string
Public Shared Function SeedDatumNavigation (entityType As Object, navigation As Object, relatedEntityType As Object, foreignKeyProperties As Object) As String

參數

entityType
Object
navigation
Object
relatedEntityType
Object
foreignKeyProperties
Object

傳回

適用於