Compartilhar via


MigrationsScaffolder.RemoveMigration Method

Definition

Overloads

RemoveMigration(String, String, Boolean)

Removes the previous migration.

RemoveMigration(String, String, Boolean, Boolean)

Removes the previous migration.

RemoveMigration(String, String, Boolean, String)

Removes the previous migration.

RemoveMigration(String, String, Boolean, String, Boolean)

Removes the previous migration.

RemoveMigration(String, String, Boolean)

Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs

Removes the previous migration.

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

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.

Returns

The removed migration files.

Applies to

RemoveMigration(String, String, Boolean, Boolean)

Source:
MigrationsScaffolder.cs

Removes the previous migration.

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

dryRun
Boolean

If true, then nothing is actually written to disk.

Returns

The removed migration files.

Applies to

RemoveMigration(String, String, Boolean, String)

Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs

Removes the previous migration.

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

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.

Implements

Applies to

RemoveMigration(String, String, Boolean, String, Boolean)

Source:
MigrationsScaffolder.cs

Removes the previous migration.

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

Implements

Applies to