MutablePropertyExtensions.FindFirstPrincipal(IMutableProperty) 方法

定義

如果指定的屬性是外鍵的一部分,則尋找所指定屬性受限制的第一個主體屬性。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty FindFirstPrincipal (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member FindFirstPrincipal : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function FindFirstPrincipal (property As IMutableProperty) As IMutableProperty

參數

property
IMutableProperty

外鍵屬性。

傳回

第一個相關聯的主體屬性,如果不存在,則 null 為 。

適用於