PropertyExtensions.FindPrincipals(IProperty) Method

Definition

Caution

Use IReadOnlyProperty.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 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)

Parameters

property
IProperty

The foreign key property.

Returns

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

Attributes

Applies to