共用方式為


CoreStrings.DuplicateForeignKey 方法

定義

外鍵 {foreignKeyProperties} 無法新增至實體類型 '{entityType}',因為相同屬性上的外鍵已存在於實體類型 '{duplicateEntityType}' 上,也會以 '{principalType} 上的索引鍵 {keyProperties} 為目標。

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

參數

foreignKeyforeignKeyProperties
Object
entityType
Object
duplicateEntityType
Object
keykeyProperties
Object
principalType
Object

傳回

適用於