Class AutoReversingMigration
A migration base class that will automatically generate the down expressions
Implements
Inherited Members
Namespace: FluentMigrator
Assembly: FluentMigrator.dll
Syntax
public abstract class AutoReversingMigration : MigrationBase, IMigration
Remarks
This only works for some expressions like CREATE TABLE, but not for DROP TABLE.
Methods
| Edit this page View SourceDown()
Collects the DOWN migration expressions
Declaration
public override sealed void Down()
Overrides
| Edit this page View SourceGetDownExpressions(IMigrationContext)
Collects all Down migration expressions in the context
.
Declaration
public override void GetDownExpressions(IMigrationContext context)
Parameters
Type | Name | Description |
---|---|---|
IMigration |
context | The context to use while collecting the Down migration expressions |