Search Results for

    Show / Hide Table of Contents

    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

    1. BeforeAll: Migration will be run before all standard migrations.
    2. BeforeEach: Migration will be run before each standard migration.
    3. AfterEach: Migration will be run after each standard migration.
    4. BeforeProfiles: Migration will be run after all standard migrations, but before profiles.
    5. 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
    • Edit this page
    In this article
    • Expression
    • Maintenance
      • Migration Stages
    • Migration
    • Migration Expression
    • Migration Generator
    • Migration Processor
    • Profile
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.