Share via


IReadOnlyProperty.GetPrincipals 方法

定義

多載

GetPrincipals()

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

GetPrincipals<T>()

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

GetPrincipals()

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

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> GetPrincipals ();
abstract member GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty>
override this.GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty>
Public Overridable Function GetPrincipals () As IReadOnlyList(Of IReadOnlyProperty)

傳回

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

適用於

GetPrincipals<T>()

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

public virtual System.Collections.Generic.IReadOnlyList<T> GetPrincipals<T> () where T : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty;
abstract member GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)> (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)
override this.GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)> (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)
Public Overridable Function GetPrincipals(Of T As IReadOnlyProperty) () As IReadOnlyList(Of T)

類型參數

T

傳回

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

適用於