Share via


IMigrationsCodeGenerator Interface

Definition

Used to generate code for migrations.

public interface IMigrationsCodeGenerator : Microsoft.EntityFrameworkCore.Design.ILanguageBasedService
public interface IMigrationsCodeGenerator
type IMigrationsCodeGenerator = interface
    interface ILanguageBasedService
type IMigrationsCodeGenerator = interface
Public Interface IMigrationsCodeGenerator
Implements ILanguageBasedService
Public Interface IMigrationsCodeGenerator
Derived
Implements

Remarks

See Database migrations, and EF Core design-time services for more information and examples.

Properties

Name Description
FileExtension

Gets the file extension code files should use.

Language

Gets the programming language supported by this service.

(Inherited from ILanguageBasedService)

Methods

Name Description
GenerateMetadata(String, Type, String, String, IModel)

Generates the migration metadata code.

GenerateMigration(String, String, IReadOnlyList<MigrationOperation>, IReadOnlyList<MigrationOperation>)

Generates the migration code.

GenerateSnapshot(String, Type, String, IModel)

Generates the model snapshot code.

Applies to