共用方式為


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

定義

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

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

參數

property
Object
entityType
Object
keykeyProperties
Object
baseEntityType
Object

傳回

適用於