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.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GenerateAnnotations(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. |
![]() | GenerateAnnotations(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.