ConventionForeignKeyExtensions.GetRelatedEntityType Méthode

Définition

Obtient le type d’entité associé au donné.

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

Paramètres

foreignKey
IConventionForeignKey

Clé étrangère.

entityType
IConventionEntityType

Un des types d’entité liés par la clé étrangère.

Retours

Type d’entité lié au donné.

S’applique à