Share via


CoreStrings.KeyInUse Method

Definition

Overloads

KeyInUse(Object, Object, Object)

Cannot remove key {key} from entity type '{entityType}' because it is referenced by a foreign key in entity type '{dependentType}'. All foreign keys must be removed or redefined before the referenced key can be removed.

KeyInUse(Object, Object, Object, Object)

Cannot remove key {keyProperties} from entity type '{entityType}' because it is referenced by a foreign key {foreignKeyProperties} defined on entity type '{dependentType}'. Remove or change the principal key for all referencing foreign keys before removing the key.

KeyInUse(Object, Object, Object)

Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs

Cannot remove key {key} from entity type '{entityType}' because it is referenced by a foreign key in entity type '{dependentType}'. All foreign keys must be removed or redefined before the referenced key can be removed.

public static string KeyInUse (object key, object entityType, object dependentType);
static member KeyInUse : obj * obj * obj -> string
Public Shared Function KeyInUse (key As Object, entityType As Object, dependentType As Object) As String

Parameters

key
Object
entityType
Object
dependentType
Object

Returns

Applies to

KeyInUse(Object, Object, Object, Object)

Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs
Source:
CoreStrings.Designer.cs

Cannot remove key {keyProperties} from entity type '{entityType}' because it is referenced by a foreign key {foreignKeyProperties} defined on entity type '{dependentType}'. Remove or change the principal key for all referencing foreign keys before removing the key.

public static string KeyInUse (object keyProperties, object entityType, object foreignKeyProperties, object dependentType);
public static string KeyInUse (object? keyProperties, object? entityType, object? foreignKeyProperties, object? dependentType);
static member KeyInUse : obj * obj * obj * obj -> string
Public Shared Function KeyInUse (keyProperties As Object, entityType As Object, foreignKeyProperties As Object, dependentType As Object) As String

Parameters

keyProperties
Object
entityType
Object
foreignKeyProperties
Object
dependentType
Object

Returns

Applies to