MigrationsScaffolder.RemoveMigration 方法

定义

重载

RemoveMigration(String, String, Boolean)

删除以前的迁移。

RemoveMigration(String, String, Boolean, String)

删除以前的迁移。

RemoveMigration(String, String, Boolean)

删除以前的迁移。

public virtual Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles RemoveMigration (string projectDir, string rootNamespace, bool force);
abstract member RemoveMigration : string * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
override this.RemoveMigration : string * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Overridable Function RemoveMigration (projectDir As String, rootNamespace As String, force As Boolean) As MigrationFiles

参数

projectDir
String

项目的根目录。

rootNamespace
String

项目的根命名空间。

force
Boolean

不要检查查看是否已将迁移应用到数据库。

返回

已删除的迁移文件。

适用于

RemoveMigration(String, String, Boolean, String)

删除以前的迁移。

public virtual Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles RemoveMigration (string projectDir, string rootNamespace, bool force, string language);
public virtual 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
override this.RemoveMigration : string * string * bool * string -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Overridable Function RemoveMigration (projectDir As String, rootNamespace As String, force As Boolean, language As String) As MigrationFiles

参数

projectDir
String

项目的根目录。

rootNamespace
String

项目的根命名空间。

force
Boolean

不要检查查看是否已将迁移应用到数据库。

language
String

项目的语言。

返回

已删除的迁移文件。

实现

适用于