CoreStrings.DuplicateForeignKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The foreign key {foreignKeyProperties} cannot be added to the entity type '{entityType}' because a foreign key on the same properties already exists on entity type '{duplicateEntityType}' and also targets the key {keyProperties} on '{principalType}'.
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
Parameters
- foreignKeyforeignKeyProperties
- Object
- entityType
- Object
- duplicateEntityType
- Object
- keykeyProperties
- Object
- principalType
- Object
Returns
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework