Sdílet prostřednictvím


MutableEntityTypeExtensions.FindDeclaredForeignKeys Metoda

Definice

Získá cizí klíče deklarované na dané IConventionEntityType pomocí daných vlastností.

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

Parametry

entityType
IMutableEntityType

Typ entity.

properties
IReadOnlyList<IProperty>

Vlastnosti, ve které se mají cizí klíče najít.

Návraty

Deklarované cizí klíče.

Platí pro