IConventionProperty.GetContainingForeignKeys Method

Definition

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

C#
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> GetContainingForeignKeys ();

Returns

The foreign keys that use this property.

Applies to

Product Versions
Entity Framework Core 6.0, 7.0, 8.0, 9.0