MigrationCodeGenerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for providers that generate code for code-based migrations.
public abstract class MigrationCodeGenerator
type MigrationCodeGenerator = class
Public MustInherit Class MigrationCodeGenerator
- Inheritance
-
MigrationCodeGenerator
- Derived
Constructors
MigrationCodeGenerator() |
Properties
AnnotationGenerators |
Gets the AnnotationCodeGenerator instances that are being used. |
Methods
Generate(String, IEnumerable<MigrationOperation>, String, String, String, String) |
Generates the code that should be added to the users project. |
GetDefaultNamespaces(Boolean) |
Gets the default namespaces that must be output as "using" or "Imports" directives for any code generated. |
GetNamespaces(IEnumerable<MigrationOperation>) |
Gets the namespaces that must be output as "using" or "Imports" directives to handle the code generated by the given operations. |
Applies to
Entity Framework