Migration.Down(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 'down'.
protected virtual void Down (Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder migrationBuilder);
abstract member Down : Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder -> unit
override this.Down : Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder -> unit
Protected Overridable Sub Down (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 this migration so that it returns to the state that it was in before this migration was applied.
This method must be overridden in each class that inherits from Migration if both 'up' and 'down' migrations are to be supported. If it is not overridden, then calling it will throw and it will not be possible to migrate in the 'down' direction.
See Database migrations for more information and examples.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor