IEntityType.FindDeclaredForeignKeys Method

Definition

Gets the foreign keys declared on the given IEntityType using the given properties.

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> FindDeclaredForeignKeys (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindDeclaredForeignKeys : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
Public Function FindDeclaredForeignKeys (properties As IReadOnlyList(Of IReadOnlyProperty)) As IEnumerable(Of IForeignKey)

Parameters

properties
IReadOnlyList<IReadOnlyProperty>

The properties to find the foreign keys on.

Returns

Declared foreign keys.

Applies to