RuntimeModelConvention.GetForeignKey(IForeignKey, RuntimeEntityType) Método

Definição

Obtém a chave estrangeira correspondente no modelo com otimização de leitura.

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

A chave estrangeira original.

entityType
RuntimeEntityType

O tipo de entidade de declaração.

Retornos

A chave estrangeira com otimização de leitura correspondente.

Aplica-se a