ConventionEntityTypeExtensions.GetDerivedForeignKeys Method

Definition

Gets all foreign keys declared on the types derived from the given IConventionEntityType.

This method does not return foreign keys declared on the given entity type itself. Use GetForeignKeys() to return foreign keys declared on this and base entity typed types.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> GetDerivedForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetDerivedForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
<Extension()>
Public Function GetDerivedForeignKeys (entityType As IConventionEntityType) As IEnumerable(Of IConventionForeignKey)

Parameters

entityType
IConventionEntityType

The entity type.

Returns

Derived foreign keys.

Applies to