Migration.Up(MigrationBuilder) Method
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.
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
Entity Framework