Fluent Migrator is a migration framework for .NET much like Ruby on Rails Migrations. Migrations are a structured way to alter your database schema and are an alternative to creating lots of sql scripts that have to be run manually by every developer involved. Migrations solve the problem of evolving a database schema for multiple databases (for example, the developer's local database, the test database and the production database). Database schema changes are described in classes written in C# that can be checked into a version control system.
- Database-agnostic migrations: Quickstart
- Database-specific migrations:
- SQL Server Extensions
- Postgres Extensions
- Frequently Asked Questions
- FluentMigrator Comparison to Entity Framework Core Migrations
This is an example of a database-agnostic migration:
[!code-cs20180430121800_AddLogTable.cs]
- 3.1 to 3.2
- 3.0 to 3.1
- 2.x to 3.0
For the current release these are the supported databases:
[!includeSupported databases]
- FAQ
- Sean Chambers on the Herding Code podcast