MutableEntityTypeExtensions.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.IMutableForeignKey> GetReferencingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetReferencingForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
<Extension()>
Public Function GetReferencingForeignKeys (entityType As IMutableEntityType) As IEnumerable(Of IMutableForeignKey)

Parameters

entityType
IMutableEntityType

The entity type.

Returns

The foreign keys that reference the given entity type.

Applies to