Share via


IConventionKey.GetReferencingForeignKeys Method

Definition

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> GetReferencingForeignKeys ();
abstract member GetReferencingForeignKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
override this.GetReferencingForeignKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
Public Overridable Function GetReferencingForeignKeys () As IEnumerable(Of IConventionForeignKey)

Returns

The foreign keys that reference the given key.

Applies to