IMutableEntityType.GetReferencingForeignKeys Method

Definition

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type or a type it's derived from is the principal).

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

Returns

The foreign keys that reference the given entity type.

Applies to