Share via


IUpdateAdapter.FindPrincipal(IUpdateEntry, IForeignKey) Method

Definition

Gets the principal entry for the given dependent entry and foreign key.

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

Parameters

dependentEntry
IUpdateEntry

The dependent entry.

foreignKey
IForeignKey

The foreign key that defines the relationship.

Returns

The principal, or null if none was found.

Applies to