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.

C#
public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> FindPrincipals (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
C#
[System.Obsolete("Use IReadOnlyProperty.GetPrincipals")]
public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> FindPrincipals (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The foreign key property.

Returns

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

Attributes

Applies to

Product Versions (Obsolete)
Entity Framework Core 5.0 (6.0)