RuntimeEntityType.IReadOnlyEntityType.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).

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

Returns

The foreign keys that reference the given entity type.

Implements

Attributes

Applies to