語言

SqlServerRuntimeModelConvention.ProcessModelAnnotations 方法

定義

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

protected override void ProcessModelAnnotations(System.Collections.Generic.Dictionary<string,object?> annotations, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Metadata.RuntimeModel runtimeModel, bool runtime);
override this.ProcessModelAnnotations : System.Collections.Generic.Dictionary<string, obj> * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Metadata.RuntimeModel * bool -> unit
Protected Overrides Sub ProcessModelAnnotations (annotations As Dictionary(Of String, Object), model As IModel, runtimeModel As RuntimeModel, runtime As Boolean)

參數

annotations
Dictionary<String,Object>

需要處理的註解。

model
IModel

來源模型。

runtimeModel
RuntimeModel

目標模型會包含註解。

runtime
Boolean

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

適用於