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
Down()
Collects the DOWN migration expressions
Declaration
public override sealed void Down()
Overrides
GetDownExpressions(IMigrationContext)
Collects all Down migration expressions in the context
.
Declaration
public override void GetDownExpressions(IMigrationContext context)
Parameters
Type | Name | Description |
---|---|---|
IMigrationContext | context | The context to use while collecting the Down migration expressions |