AnnotationCodeGenerator Class
Represents the creation of a service that allows for code generation of custom annotations as part of scaffolding Migrations. The derived class should be set onto the MigrationCodeGenerator.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | AnnotationCodeGenerator() | Initializes a new instance of the AnnotationCodeGenerator class. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | Generate(String, Object, IndentedTextWriter) | Generates code for the given annotation value. |
![]() | GetExtraNamespaces(IEnumerable<String>) | Return additional namespaces that should be included in the code generated for the scaffolded migration. The default implementation returns an empty enumeration. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Note that an AnnotationCodeGenerator is not needed if the annotation uses a simple string value, or if calling ToString on the annotation object is sufficient for use in the scaffolded Migration.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.