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

指示给定批注是否为运行时批注。

适用于