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

返回

适用于