Share via


RuntimeEntityType.IReadOnlyEntityType.GetReferencingForeignKeys Method

Definition

Gets all foreign keys that target a given entity type (i.e. foreign keys where the given entity type or a base type is the principal).

[System.Diagnostics.DebuggerStepThrough]
System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey> IReadOnlyEntityType.GetReferencingForeignKeys ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.GetReferencingForeignKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey>
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.GetReferencingForeignKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey>
Function GetReferencingForeignKeys () As IEnumerable(Of IReadOnlyForeignKey) Implements IReadOnlyEntityType.GetReferencingForeignKeys

Returns

The foreign keys that reference the given entity type or a base type.

Implements

Attributes

Applies to