CSharpMigrationOperationGenerator Class

Definition

Used to generate C# for creating MigrationOperation objects.

public class CSharpMigrationOperationGenerator
public class CSharpMigrationOperationGenerator : Microsoft.EntityFrameworkCore.Migrations.Design.ICSharpMigrationOperationGenerator
type CSharpMigrationOperationGenerator = class
type CSharpMigrationOperationGenerator = class
    interface ICSharpMigrationOperationGenerator
Public Class CSharpMigrationOperationGenerator
Public Class CSharpMigrationOperationGenerator
Implements ICSharpMigrationOperationGenerator
Inheritance
CSharpMigrationOperationGenerator
Implements

Remarks

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

Constructors

CSharpMigrationOperationGenerator(CSharpHelper)
CSharpMigrationOperationGenerator(CSharpMigrationOperationGeneratorDependencies)

Initializes a new instance of the CSharpMigrationOperationGenerator class.

Properties

Dependencies

Dependencies for this service.

Methods

Annotations(IEnumerable<Annotation>, IndentedStringBuilder)

Generates code for Annotation objects.

Annotations(IEnumerable<Annotation>, IndentedStringBuilder)

Generates code for Annotation objects.

Generate(AddCheckConstraintOperation, IndentedStringBuilder)

Generates code for an AddCheckConstraintOperation.

Generate(AddColumnOperation, IndentedStringBuilder)

Generates code for an AddColumnOperation.

Generate(AddColumnOperation, IndentedStringBuilder)

Generates code for an AddColumnOperation.

Generate(AddForeignKeyOperation, IndentedStringBuilder)

Generates code for an AddForeignKeyOperation.

Generate(AddForeignKeyOperation, IndentedStringBuilder)

Generates code for an AddForeignKeyOperation.

Generate(AddPrimaryKeyOperation, IndentedStringBuilder)

Generates code for an AddPrimaryKeyOperation.

Generate(AddPrimaryKeyOperation, IndentedStringBuilder)

Generates code for an AddPrimaryKeyOperation.

Generate(AddUniqueConstraintOperation, IndentedStringBuilder)

Generates code for an AddUniqueConstraintOperation.

Generate(AddUniqueConstraintOperation, IndentedStringBuilder)

Generates code for an AddUniqueConstraintOperation.

Generate(AlterColumnOperation, IndentedStringBuilder)

Generates code for an AlterColumnOperation.

Generate(AlterColumnOperation, IndentedStringBuilder)

Generates code for an AlterColumnOperation.

Generate(AlterDatabaseOperation, IndentedStringBuilder)

Generates code for an AlterDatabaseOperation.

Generate(AlterDatabaseOperation, IndentedStringBuilder)

Generates code for an AlterDatabaseOperation.

Generate(AlterSequenceOperation, IndentedStringBuilder)

Generates code for an AlterSequenceOperation.

Generate(AlterSequenceOperation, IndentedStringBuilder)

Generates code for an AlterSequenceOperation.

Generate(AlterTableOperation, IndentedStringBuilder)

Generates code for an AlterTableOperation.

Generate(AlterTableOperation, IndentedStringBuilder)

Generates code for an AlterTableOperation.

Generate(CreateCheckConstraintOperation, IndentedStringBuilder)

Generates code for an CreateCheckConstraintOperation.

Generate(CreateIndexOperation, IndentedStringBuilder)

Generates code for a CreateIndexOperation.

Generate(CreateIndexOperation, IndentedStringBuilder)

Generates code for a CreateIndexOperation.

Generate(CreateSequenceOperation, IndentedStringBuilder)

Generates code for a CreateSequenceOperation.

Generate(CreateSequenceOperation, IndentedStringBuilder)

Generates code for a CreateSequenceOperation.

Generate(CreateTableOperation, IndentedStringBuilder)

Generates code for a CreateTableOperation.

Generate(CreateTableOperation, IndentedStringBuilder)

Generates code for a CreateTableOperation.

Generate(DeleteDataOperation, IndentedStringBuilder)

Generates code for a DeleteDataOperation.

Generate(DeleteDataOperation, IndentedStringBuilder)

Generates code for a DeleteDataOperation.

Generate(DropCheckConstraintOperation, IndentedStringBuilder)

Generates code for a DropCheckConstraintOperation.

Generate(DropCheckConstraintOperation, IndentedStringBuilder)

Generates code for a DropCheckConstraintOperation.

Generate(DropColumnOperation, IndentedStringBuilder)

Generates code for a DropColumnOperation.

Generate(DropColumnOperation, IndentedStringBuilder)

Generates code for a DropColumnOperation.

Generate(DropForeignKeyOperation, IndentedStringBuilder)

Generates code for a DropForeignKeyOperation.

Generate(DropForeignKeyOperation, IndentedStringBuilder)

Generates code for a DropForeignKeyOperation.

Generate(DropIndexOperation, IndentedStringBuilder)

Generates code for a DropIndexOperation.

Generate(DropIndexOperation, IndentedStringBuilder)

Generates code for a DropIndexOperation.

Generate(DropPrimaryKeyOperation, IndentedStringBuilder)

Generates code for a DropPrimaryKeyOperation.

Generate(DropPrimaryKeyOperation, IndentedStringBuilder)

Generates code for a DropPrimaryKeyOperation.

Generate(DropSchemaOperation, IndentedStringBuilder)

Generates code for a DropSchemaOperation.

Generate(DropSchemaOperation, IndentedStringBuilder)

Generates code for a DropSchemaOperation.

Generate(DropSequenceOperation, IndentedStringBuilder)

Generates code for a DropSequenceOperation.

Generate(DropSequenceOperation, IndentedStringBuilder)

Generates code for a DropSequenceOperation.

Generate(DropTableOperation, IndentedStringBuilder)

Generates code for a DropTableOperation.

Generate(DropTableOperation, IndentedStringBuilder)

Generates code for a DropTableOperation.

Generate(DropUniqueConstraintOperation, IndentedStringBuilder)

Generates code for a DropUniqueConstraintOperation.

Generate(DropUniqueConstraintOperation, IndentedStringBuilder)

Generates code for a DropUniqueConstraintOperation.

Generate(EnsureSchemaOperation, IndentedStringBuilder)

Generates code for an EnsureSchemaOperation.

Generate(EnsureSchemaOperation, IndentedStringBuilder)

Generates code for an EnsureSchemaOperation.

Generate(InsertDataOperation, IndentedStringBuilder)

Generates code for an InsertDataOperation.

Generate(InsertDataOperation, IndentedStringBuilder)

Generates code for an InsertDataOperation.

Generate(MigrationOperation, IndentedStringBuilder)

Generates code for an unknown MigrationOperation.

Generate(MigrationOperation, IndentedStringBuilder)

Generates code for an unknown MigrationOperation.

Generate(RenameColumnOperation, IndentedStringBuilder)

Generates code for a RenameColumnOperation.

Generate(RenameColumnOperation, IndentedStringBuilder)

Generates code for a RenameColumnOperation.

Generate(RenameIndexOperation, IndentedStringBuilder)

Generates code for a RenameIndexOperation.

Generate(RenameIndexOperation, IndentedStringBuilder)

Generates code for a RenameIndexOperation.

Generate(RenameSequenceOperation, IndentedStringBuilder)

Generates code for a RenameSequenceOperation.

Generate(RenameSequenceOperation, IndentedStringBuilder)

Generates code for a RenameSequenceOperation.

Generate(RenameTableOperation, IndentedStringBuilder)

Generates code for a RenameTableOperation.

Generate(RenameTableOperation, IndentedStringBuilder)

Generates code for a RenameTableOperation.

Generate(RestartSequenceOperation, IndentedStringBuilder)

Generates code for a RestartSequenceOperation.

Generate(RestartSequenceOperation, IndentedStringBuilder)

Generates code for a RestartSequenceOperation.

Generate(SqlOperation, IndentedStringBuilder)

Generates code for a SqlOperation.

Generate(SqlOperation, IndentedStringBuilder)

Generates code for a SqlOperation.

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

Generates code for creating MigrationOperation objects.

Generate(String, IReadOnlyList<MigrationOperation>, IndentedStringBuilder)

Generates code for creating MigrationOperation objects.

Generate(UpdateDataOperation, IndentedStringBuilder)

Generates code for an UpdateDataOperation.

Generate(UpdateDataOperation, IndentedStringBuilder)

Generates code for an UpdateDataOperation.

OldAnnotations(IEnumerable<Annotation>, IndentedStringBuilder)

Generates code for removed Annotation objects.

OldAnnotations(IEnumerable<Annotation>, IndentedStringBuilder)

Generates code for removed Annotation objects.

Applies to