IMigrationsScaffolder.RemoveMigration 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.
Overloads
RemoveMigration(String, String, Boolean, String) |
Removes the previous migration. |
RemoveMigration(String, String, Boolean, String, Boolean) |
Removes the previous migration. |
RemoveMigration(String, String, Boolean, String)
- Source:
- IMigrationsScaffolder.cs
- Source:
- IMigrationsScaffolder.cs
Removes the previous migration.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles RemoveMigration (string projectDir, string rootNamespace, bool force, string language);
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles RemoveMigration (string projectDir, string? rootNamespace, bool force, string? language);
abstract member RemoveMigration : string * string * bool * string -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Function RemoveMigration (projectDir As String, rootNamespace As String, force As Boolean, language As String) As MigrationFiles
Parameters
- projectDir
- String
The project's root directory.
- rootNamespace
- String
The project's root namespace.
- force
- Boolean
Don't check to see if the migration has been applied to the database.
- language
- String
The project's language.
Returns
The removed migration files.
Applies to
RemoveMigration(String, String, Boolean, String, Boolean)
- Source:
- IMigrationsScaffolder.cs
Removes the previous migration.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles RemoveMigration (string projectDir, string? rootNamespace, bool force, string? language, bool dryRun = false);
abstract member RemoveMigration : string * string * bool * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Function RemoveMigration (projectDir As String, rootNamespace As String, force As Boolean, language As String, Optional dryRun As Boolean = false) As MigrationFiles
Parameters
- projectDir
- String
The project's root directory.
- rootNamespace
- String
The project's root namespace.
- force
- Boolean
Don't check to see if the migration has been applied to the database.
- language
- String
The project's language.
- dryRun
- Boolean
If true
, then nothing is actually written to disk.
Returns
The removed migration files.
Applies to
Entity Framework