語言

CoreStrings.ForeignKeyPropertyInKey(Object, Object, Object, Object) 方法

定義

屬性 '{property}' 不能是 '{entityType}'' 外鍵的一部分,因為它是儲存產生的值,且包含在定義於基礎實體類型 '{baseEntityType}'' 上的鍵 {keyProperties} 中。 將 '{property}' 設定為 'ValueGeneratedNever',或改為在 '{entityType}' 上定義外鍵。

public static string ForeignKeyPropertyInKey(object? property, object? entityType, object? keyProperties, object? baseEntityType);
public static string ForeignKeyPropertyInKey(object property, object entityType, object key, 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, keyProperties As Object, baseEntityType As Object) As String
Public Shared Function ForeignKeyPropertyInKey (property As Object, entityType As Object, key As Object, baseEntityType As Object) As String

參數

property
Object
entityType
Object
keyPropertieskey
Object
baseEntityType
Object

傳回

適用於