ConventionKeyExtensions.GetReferencingForeignKeys(IConventionKey) Method

Definition

Gets all foreign keys that target a given primary or alternate key.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> GetReferencingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IConventionKey key);
static member GetReferencingForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IConventionKey -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
<Extension()>
Public Function GetReferencingForeignKeys (key As IConventionKey) As IEnumerable(Of IConventionForeignKey)

Parameters

key
IConventionKey

The key to find the foreign keys for.

Returns

The foreign keys that reference the given key.

Applies to