Share via


Migration.Up(MigrationBuilder) Method

Definition

Builds the operations that will migrate the database 'up'.

protected abstract void Up (Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder migrationBuilder);
abstract member Up : Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder -> unit
Protected MustOverride Sub Up (migrationBuilder As MigrationBuilder)

Parameters

migrationBuilder
MigrationBuilder

The MigrationBuilder that will build the operations.

Remarks

That is, builds the operations that will take the database from the state left in by the previous migration so that it is up-to-date with regard to this migration.

This method must be overridden in each class that inherits from Migration.

See Database migrations for more information and examples.

Applies to