Compartir a través de


RuntimeModelConvention.GetForeignKey(IForeignKey, RuntimeEntityType) Método

Definición

Obtiene la clave externa correspondiente en el modelo optimizado para lectura.

protected virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey GetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType entityType);
abstract member GetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
override this.GetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
Protected Overridable Function GetForeignKey (foreignKey As IForeignKey, entityType As RuntimeEntityType) As RuntimeForeignKey

Parámetros

foreignKey
IForeignKey

Clave externa original.

entityType
RuntimeEntityType

El tipo de entidad que realiza la declaración.

Devoluciones

Clave externa optimizada para lectura correspondiente.

Se aplica a