語言

PropertyExtensions.FindPrincipals(IProperty) 方法

定義

警告

Use IReadOnlyProperty.GetPrincipals

尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。

public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> FindPrincipals(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.GetPrincipals")]
public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> FindPrincipals(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindPrincipals : Microsoft.EntityFrameworkCore.Metadata.IProperty -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty>
[<System.Obsolete("Use IReadOnlyProperty.GetPrincipals")>]
static member FindPrincipals : Microsoft.EntityFrameworkCore.Metadata.IProperty -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty>
<Extension()>
Public Function FindPrincipals (property As IProperty) As IReadOnlyList(Of IProperty)

參數

property
IProperty

外鍵屬性。

傳回

所有相關的主要性質清單,包括該性質。

屬性

適用於