Udostępnij za pośrednictwem


ConventionEntityTypeExtensions.FindDeclaredForeignKeys Metoda

Definicja

Pobiera klucze obce zadeklarowane na danej IConventionEntityType podstawie przy użyciu podanych właściwości.

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

Parametry

entityType
IConventionEntityType

Typ jednostki.

properties
IReadOnlyList<IProperty>

Właściwości do znajdowania kluczy obcych.

Zwraca

Zadeklarowane klucze obce.

Dotyczy