语言

CSharpMigrationCodeGenerator.GenerateAnnotations 方法

定义

重载

名称 说明
GenerateAnnotations(IDictionary<String,Object>, IndentedTextWriter)

生成用于在将这些批注作为参数 DbMigration传递时要使用的给定批注字典的代码。 调用。

GenerateAnnotations(IDictionary<String,AnnotationValues>, IndentedTextWriter)

生成用于在将这些批注作为参数 DbMigration传递时要使用的给定批注字典的代码。 调用。

GenerateAnnotations(IDictionary<String,Object>, IndentedTextWriter)

生成用于在将这些批注作为参数 DbMigration传递时要使用的给定批注字典的代码。 调用。

protected internal virtual void GenerateAnnotations(System.Collections.Generic.IDictionary<string,object> annotations, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
abstract member GenerateAnnotations : System.Collections.Generic.IDictionary<string, obj> * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
override this.GenerateAnnotations : System.Collections.Generic.IDictionary<string, obj> * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Friend Overridable Sub GenerateAnnotations (annotations As IDictionary(Of String, Object), writer As IndentedTextWriter)

参数

annotations
IDictionary<String,Object>

要生成的批注。

writer
IndentedTextWriter

应向其写入生成的代码的编写器。

适用于

GenerateAnnotations(IDictionary<String,AnnotationValues>, IndentedTextWriter)

生成用于在将这些批注作为参数 DbMigration传递时要使用的给定批注字典的代码。 调用。

protected internal virtual void GenerateAnnotations(System.Collections.Generic.IDictionary<string,System.Data.Entity.Infrastructure.Annotations.AnnotationValues> annotations, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
abstract member GenerateAnnotations : System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
override this.GenerateAnnotations : System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Friend Overridable Sub GenerateAnnotations (annotations As IDictionary(Of String, AnnotationValues), writer As IndentedTextWriter)

参数

annotations
IDictionary<String,AnnotationValues>

要生成的批注。

writer
IndentedTextWriter

应向其写入生成的代码的编写器。

适用于