RelationalRuntimeModelConvention.ProcessForeignKeyAnnotations Method

Definition

Updates the foreign key annotations that will be set on the read-only object.

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)

Parameters

annotations
Dictionary<String,Object>

The annotations to be processed.

foreignKey
IForeignKey

The source foreign key.

runtimeForeignKey
RuntimeForeignKey

The target foreign key that will contain the annotations.

runtime
Boolean

Indicates whether the given annotations are runtime annotations.

Applies to