Share via


CoreStrings.ForeignKeyPropertyInKey(Object, Object, Object, Object) Method

Definition

The property '{property}' cannot be part of a foreign key on '{entityType}' because it has a store-generated value and is contained in the key {keyProperties} defined on a base entity type '{baseEntityType}'. Configure '{property}' with 'ValueGeneratedNever' or define the foreign key on '{entityType}' instead.

public static string ForeignKeyPropertyInKey (object property, object entityType, object key, object baseEntityType);
public static string ForeignKeyPropertyInKey (object property, object entityType, object keyProperties, object baseEntityType);
public static string ForeignKeyPropertyInKey (object? property, object? entityType, object? keyProperties, object? baseEntityType);
static member ForeignKeyPropertyInKey : obj * obj * obj * obj -> string
static member ForeignKeyPropertyInKey : obj * obj * obj * obj -> string
Public Shared Function ForeignKeyPropertyInKey (property As Object, entityType As Object, key As Object, baseEntityType As Object) As String
Public Shared Function ForeignKeyPropertyInKey (property As Object, entityType As Object, keyProperties As Object, baseEntityType As Object) As String

Parameters

property
Object
entityType
Object
keykeyProperties
Object
baseEntityType
Object

Returns

Applies to