Langue

IUpdateAdapter.FindPrincipal(IUpdateEntry, IForeignKey) Méthode

Définition

Obtient l’entrée principale de l’entrée dépendante donnée et de la clé étrangère.

public Microsoft.EntityFrameworkCore.Update.IUpdateEntry? FindPrincipal(Microsoft.EntityFrameworkCore.Update.IUpdateEntry dependentEntry, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
public Microsoft.EntityFrameworkCore.Update.IUpdateEntry FindPrincipal(Microsoft.EntityFrameworkCore.Update.IUpdateEntry dependentEntry, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
abstract member FindPrincipal : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Update.IUpdateEntry
Public Function FindPrincipal (dependentEntry As IUpdateEntry, foreignKey As IForeignKey) As IUpdateEntry

Paramètres

dependentEntry
IUpdateEntry

Entrée dépendante.

foreignKey
IForeignKey

Clé étrangère qui définit la relation.

Retours

Principal ou null s’il n’a pas été trouvé.

S’applique à