CSharpMigrationCodeGenerator.GenerateAnnotations 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
应向其写入生成的代码的编写器。