CoreStrings.SeedDatumNavigationSensitive Method

Definition

The seed entity for entity type '{entityType}' with the key value '{keyValue}' cannot be added because it has the navigation '{navigation}' set. To seed relationships, add the entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}.

C#
public static string SeedDatumNavigationSensitive (object entityType, object keyValue, object navigation, object relatedEntityType, object foreignKeyProperties);
C#
public static string SeedDatumNavigationSensitive (object? entityType, object? keyValue, object? navigation, object? relatedEntityType, object? foreignKeyProperties);

Parameters

entityType
Object
keyValue
Object
navigation
Object
relatedEntityType
Object
foreignKeyProperties
Object

Returns

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0