ConventionEntityTypeExtensions.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 static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> GetReferencingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetReferencingForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
<Extension()>
Public Function GetReferencingForeignKeys (entityType As IConventionEntityType) As IEnumerable(Of IConventionForeignKey)

Parameters

entityType
IConventionEntityType

The entity type.

Returns

The foreign keys that reference the given entity type.

Applies to