Freigeben über


RuntimeModelConvention.GetForeignKey(IForeignKey, RuntimeEntityType) Methode

Definition

Ruft den entsprechenden Fremdschlüssel im leseoptimierten Modell ab.

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

Parameter

foreignKey
IForeignKey

Der ursprüngliche Fremdschlüssel.

entityType
RuntimeEntityType

Der deklarierende Entitätstyp.

Gibt zurück

Der entsprechende leseoptimierte Fremdschlüssel.

Gilt für: