Sdílet prostřednictvím


ForeignKeyExtensions.GetRelatedEntityType(IForeignKey, IEntityType) Metoda

Definice

Získá typ entity související s danou entitou.

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType GetRelatedEntityType (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function GetRelatedEntityType (foreignKey As IForeignKey, entityType As IEntityType) As IEntityType

Parametry

foreignKey
IForeignKey

Cizí klíč.

entityType
IEntityType

Jeden z typů entit souvisejících se cizím klíčem.

Návraty

Typ entity související s danou entitou.

Platí pro