語言

IUpdateAdapter.FindPrincipal(IUpdateEntry, IForeignKey) 方法

定義

取得該依賴條目的主要條目與外鍵。

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

參數

dependentEntry
IUpdateEntry

依賴條目。

foreignKey
IForeignKey

定義關係的外鍵。

傳回

本金,若未發現則為無效。

適用於