PropertyExtensions.GetContainingForeignKeys(IProperty) Method

Definition

Gets all foreign keys that use this property (including composite foreign keys in which this property is included).

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> GetContainingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetContainingForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
<Extension()>
Public Function GetContainingForeignKeys (property As IProperty) As IEnumerable(Of IForeignKey)

Parameters

property
IProperty

The property to get foreign keys for.

Returns

The foreign keys that use this property.

Applies to