ConventionPropertyExtensions.FindPrincipals(IConventionProperty) 方法

定義

警告

Use IConventionProperty.GetPrincipals

如果指定的屬性是外鍵的一部分,則尋找主體屬性的清單,包括給定屬性所限制的指定屬性。

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

參數

property
IConventionProperty

外鍵屬性。

傳回

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

屬性

適用於