Expression
See: Migration Expression
Maintenance
Those are migrations that should always be executed at a specified stage.
Warning
Maintenance migrations are always run at the given stage when selected.
Note
A migration must have:
public
visibility- IMigration as implemented interface (The Migration class already implements it)
- MaintenanceAttribute
Migration Stages
BeforeAll
: Migration will be run before all standard migrations.BeforeEach
: Migration will be run before each standard migration.AfterEach
: Migration will be run after each standard migration.BeforeProfiles
: Migration will be run after all standard migrations, but before profiles.AfterAll
: Migration will be run after all standard migrations and profiles.
Migration
A migration is a database modification usually applied within its own transaction.
Note
A migration must have:
public
visibility- IMigration as implemented interface (The Migration class already implements it)
- MigrationAttribute
Migration Expression
An expression created from within a migration that gets used to produce an SQL statement (using a migration generator) that gets executed by a migration processor.
A migration expression always implements IMigrationExpression.
Migration Generator
Translates an expression created from within a migration to one or more SQL statements.
A migration generator always implements IMigrationGenerator.
Migration Processor
Passes the expressions to a migration generator and then executes the resulting SQL statements.
A migration processor always implements IMigrationProcessor.
Profile
A profile is used to selectively apply migrations.
Warning
Profiles are always run when selected.
Note
A profile must have:
public
visibility- IMigration as implemented interface (The Migration class already implements it)
- ProfileAttribute