共用方式為


CoreStrings.ForeignKeyWrongType 方法

定義

'{principalType}' 上以索引鍵 {keyProperties} 為目標的外鍵 {foreignKeyProperties} 無法從實體類型 '{entityType}' 中移除,因為它是在實體類型 '{otherEntityType}' 上定義。

public static string ForeignKeyWrongType (object foreignKey, object key, object principalType, object otherEntityType, object entityType);
public static string ForeignKeyWrongType (object foreignKeyProperties, object keyProperties, object principalType, object entityType, object otherEntityType);
public static string ForeignKeyWrongType (object? foreignKeyProperties, object? keyProperties, object? principalType, object? entityType, object? otherEntityType);
static member ForeignKeyWrongType : obj * obj * obj * obj * obj -> string
static member ForeignKeyWrongType : obj * obj * obj * obj * obj -> string
Public Shared Function ForeignKeyWrongType (foreignKey As Object, key As Object, principalType As Object, otherEntityType As Object, entityType As Object) As String
Public Shared Function ForeignKeyWrongType (foreignKeyProperties As Object, keyProperties As Object, principalType As Object, entityType As Object, otherEntityType As Object) As String

參數

foreignKeyforeignKeyProperties
Object
keykeyProperties
Object
principalType
Object
otherEntityTypeentityType
Object
entityTypeotherEntityType
Object

傳回

適用於