語言

RuntimeModelConvention.ProcessForeignKeyAnnotations 方法

定義

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

protected virtual void ProcessForeignKeyAnnotations(System.Collections.Generic.Dictionary<string,object?> annotations, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey runtimeForeignKey, bool runtime);
abstract member ProcessForeignKeyAnnotations : System.Collections.Generic.Dictionary<string, obj> * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool -> unit
override this.ProcessForeignKeyAnnotations : System.Collections.Generic.Dictionary<string, obj> * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool -> unit
Protected Overridable 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

表示所給註解是否為執行時註解。

適用於