IUpdateAdapter.FindPrincipal(IUpdateEntry, IForeignKey) 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.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework