共用方式為


RelationalRuntimeModelConvention.ProcessForeignKeyAnnotations 方法

定義

更新將在唯讀物件上設定的外鍵批註。

protected override void ProcessForeignKeyAnnotations (System.Collections.Generic.Dictionary<string,object?> annotations, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey runtimeForeignKey, bool runtime);
override this.ProcessForeignKeyAnnotations : System.Collections.Generic.Dictionary<string, obj> * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool -> unit
Protected Overrides Sub ProcessForeignKeyAnnotations (annotations As Dictionary(Of String, Object), foreignKey As IForeignKey, runtimeForeignKey As RuntimeForeignKey, runtime As Boolean)

參數

annotations
Dictionary<String,Object>

要處理的批註。

foreignKey
IForeignKey

來源外鍵。

runtimeForeignKey
RuntimeForeignKey

將包含批註的目標外鍵。

runtime
Boolean

指出指定的批註是否為執行時間批註。

適用於