CSharpMigrationCodeGenerator.GenerateAnnotations Method

 

Generates code to re-create the given dictionary of annotations for use when passing these annotations as a parameter of a DbMigration call.

Namespace:   System.Data.Entity.Migrations.Design
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_protmethodGenerateAnnotations(IDictionary<String, AnnotationValues>, IndentedTextWriter)

Generates code to re-create the given dictionary of annotations for use when passing these annotations as a parameter of a DbMigration call.

System_CAPS_protmethodGenerateAnnotations(IDictionary<String, Object>, IndentedTextWriter)

Generates code to re-create the given dictionary of annotations for use when passing these annotations as a parameter of a DbMigration call.


CSharpMigrationCodeGenerator.GenerateAnnotations Method (IDictionary<String, AnnotationValues>, IndentedTextWriter)

Generates code to re-create the given dictionary of annotations for use when passing these annotations as a parameter of a DbMigration call.

protected internal virtual void GenerateAnnotations(
	IDictionary<string, AnnotationValues> annotations,
	IndentedTextWriter writer
)

Parameters

annotations
Type: System.Collections.Generic.IDictionary<String, AnnotationValues>

The annotations to generate.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

The writer to which generated code should be written.


CSharpMigrationCodeGenerator.GenerateAnnotations Method (IDictionary<String, Object>, IndentedTextWriter)

Generates code to re-create the given dictionary of annotations for use when passing these annotations as a parameter of a DbMigration call.

protected internal virtual void GenerateAnnotations(
	IDictionary<string, object> annotations,
	IndentedTextWriter writer
)

Parameters

annotations
Type: System.Collections.Generic.IDictionary<String, Object>

The annotations to generate.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

The writer to which generated code should be written.