Condividi tramite


RuntimeModelConvention.GetForeignKey(IForeignKey, RuntimeEntityType) Metodo

Definizione

Ottiene la chiave esterna corrispondente nel modello ottimizzato per la lettura.

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

Parametri

foreignKey
IForeignKey

Chiave esterna originale.

entityType
RuntimeEntityType

Tipo di entità dichiarante.

Restituisce

Chiave esterna ottimizzata per la lettura corrispondente.

Si applica a