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