CoreStrings.ForeignKeyInUseSkipNavigation Method

Definition

Cannot remove the foreign key {foreignKeyProperties} from entity type '{entityType}' because it is referenced by a skip navigation '{navigation}' on entity type '{navigationEntityType}'. All referencing skip navigations must be removed before the referenced foreign key can be removed.

C#
public static string ForeignKeyInUseSkipNavigation (object foreigKey, object entityType, object navigation, object navigationEntityType);
C#
public static string ForeignKeyInUseSkipNavigation (object? foreignKeyProperties, object? entityType, object? navigation, object? navigationEntityType);

Parameters

foreigKeyforeignKeyProperties
Object
entityType
Object
navigation
Object
navigationEntityType
Object

Returns

Applies to

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