Share via


IConventionEntityType.GetDeclaredReferencingForeignKeys Method

Definition

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type is the principal).

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

Returns

The foreign keys that reference the given entity type.

Applies to