Share via


IReadOnlyProperty.GetPrincipals Method

Definition

Overloads

GetPrincipals()

Finds the list of principal properties including the given property that the given property is constrained by if the given property is part of a foreign key.

GetPrincipals<T>()

Finds the list of principal properties including the given property that the given property is constrained by if the given property is part of a foreign key.

GetPrincipals()

Finds the list of principal properties including the given property that the given property is constrained by if the given property is part of a foreign key.

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)

Returns

The list of all associated principal properties including the given property.

Applies to

GetPrincipals<T>()

Finds the list of principal properties including the given property that the given property is constrained by if the given property is part of a foreign key.

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)

Type Parameters

T

Returns

The list of all associated principal properties including the given property.

Applies to