Share via


MigrationCodeGenerator Class

Definition

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