共用方式為


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

傳回

適用於