PropertyExtensions.GetContainingForeignKeys(IProperty) Method

Definition

Gets all foreign keys that use this property (including composite foreign keys in which this property is included).

C#
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> GetContainingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The property to get foreign keys for.

Returns

The foreign keys that use this property.

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0