MigratorScriptingDecorator Class

Definition

Decorator to produce a SQL script instead of applying changes to the database. Using this decorator to wrap DbMigrator will prevent DbMigrator from applying any changes to the target database.

public class MigratorScriptingDecorator : System.Data.Entity.Migrations.Infrastructure.MigratorBase
type MigratorScriptingDecorator = class
    inherit MigratorBase
Public Class MigratorScriptingDecorator
Inherits MigratorBase
Inheritance
MigratorScriptingDecorator

Constructors

MigratorScriptingDecorator(MigratorBase)

Initializes a new instance of the MigratorScriptingDecorator class.

Properties

Configuration

Gets the configuration being used for the migrations process.

(Inherited from MigratorBase)

Methods

GetDatabaseMigrations()

Gets a list of the migrations that have been applied to the database.

(Inherited from MigratorBase)
GetLocalMigrations()

Gets a list of the migrations that are defined in the assembly.

(Inherited from MigratorBase)
GetPendingMigrations()

Gets a list of the pending migrations that have not been applied to the database.

(Inherited from MigratorBase)
ScriptUpdate(String, String)

Produces a script to update the database.

Update()

Updates the target database to the latest migration.

(Inherited from MigratorBase)
Update(String)

Updates the target database to a given migration.

(Inherited from MigratorBase)

Applies to