Condividi tramite


ForeignKeyExtensions.GetRelatedEntityType(IForeignKey, IEntityType) Metodo

Definizione

Ottiene il tipo di entità correlato a quello specificato.

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

Parametri

foreignKey
IForeignKey

Chiave esterna.

entityType
IEntityType

Uno dei tipi di entità correlati alla chiave esterna.

Restituisce

Tipo di entità correlato a quello specificato.

Si applica a