IUpdateAdapter.FindPrincipal(IUpdateEntry, IForeignKey) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’entrée principale pour l’entrée dépendante et la clé étrangère spécifiées.
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 si aucun n’a été trouvé.