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

返回

包括给定属性在内的所有关联的主体属性的列表。

适用于