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

外鍵屬性。

傳回

所有相關聯的主體屬性清單,包括指定的屬性。

屬性

適用於