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