FluentMigrator 6.2.0
Prefix ReservedRequires NuGet 3.5 or higher.
dotnet add package FluentMigrator --version 6.2.0
NuGet\Install-Package FluentMigrator -Version 6.2.0
<PackageReference Include="FluentMigrator" Version="6.2.0" />
paket add FluentMigrator --version 6.2.0
#r "nuget: FluentMigrator, 6.2.0"
// Install FluentMigrator as a Cake Addin #addin nuget:?package=FluentMigrator&version=6.2.0 // Install FluentMigrator as a Cake Tool #tool nuget:?package=FluentMigrator&version=6.2.0
FluentMigrator
FluentMigrator is a an open-source .NET library that allows you to manage and version database schema changes using a code-first approach. With FluentMigrator, you can define database migrations as code rather than maintaining SQL scripts or using other tools.
Some key features of FluentMigrator include:
- Code-based Migrations: You define database migrations as C# or VB.NET classes, making it easier to version control and maintain your schema changes.
- Fluent Interface: FluentMigrator provides a fluent interface for defining database objects like tables, columns, indexes, and constraints, making the code more readable and expressive.
- Cross-platform: FluentMigrator supports multiple databases, including SQL Server, PostgreSQL, MySQL, Oracle, and SQLite.
- Rollback Support: FluentMigrator allows you to roll back migrations, making it easier to undo changes or revert to a previous database state.
- Extensibility: You can create your own custom migrations, conventions, and processors to extend FluentMigrator's functionality.
Getting Started
For a brief overview on getting started with FluentMigrator, please see the documentation links here:
Installation
You can install FluentMigrator via NuGet:
Install-Package FluentMigrator
Usage
FluentMigrator example migration and usage:
[Migration(202401011200)]
public class CreatePersonTable : Migration
{
public override void Up()
{
Create.Table("People")
.WithColumn("Id").AsGuid().PrimaryKey()
.WithColumn("Name").AsString(100).NotNullable()
.WithColumn("Email").AsString(200).Nullable();
}
public override void Down()
{
Delete.Table("People");
}
}
For more detailed documentation and examples, please refer to [link to your comprehensive documentation].
Feedback and Contributing
We welcome your feedback, bug reports, and contributions to FluentMigrator.
- To report a bug or request a feature, please open an issue on our GitHub repository.
If you'd like to contribute to the project, please follow our contributing guidelines.
License
FluentMigrator is released under the Apache license. See the LICENSE file for more details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- FluentMigrator.Abstractions (>= 6.2.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
-
.NETStandard 2.0
- FluentMigrator.Abstractions (>= 6.2.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
NuGet packages (139)
Showing the top 5 NuGet packages that depend on FluentMigrator:
Package | Downloads |
---|---|
FluentMigrator.Runner.Core
FluentMigrator is a database migration framework for .NET written in C#. The basic idea is that you can create migrations which are simply classes that derive from the Migration base class and have a Migration attribute with a unique version number attached to them. Upon executing FluentMigrator, you tell it which version to migrate to and it will run all necessary migrations in order to bring your database up to that version. In addition to forward migration support, FluentMigrator also supports different ways to execute the migrations along with selective migrations called profiles and executing arbitrary SQL. |
|
FluentMigrator.Runner.SqlServer
FluentMigrator is a database migration framework for .NET written in C#. The basic idea is that you can create migrations which are simply classes that derive from the Migration base class and have a Migration attribute with a unique version number attached to them. Upon executing FluentMigrator, you tell it which version to migrate to and it will run all necessary migrations in order to bring your database up to that version. In addition to forward migration support, FluentMigrator also supports different ways to execute the migrations along with selective migrations called profiles and executing arbitrary SQL. |
|
FluentMigrator.Runner.Postgres
FluentMigrator is a database migration framework for .NET written in C#. The basic idea is that you can create migrations which are simply classes that derive from the Migration base class and have a Migration attribute with a unique version number attached to them. Upon executing FluentMigrator, you tell it which version to migrate to and it will run all necessary migrations in order to bring your database up to that version. In addition to forward migration support, FluentMigrator also supports different ways to execute the migrations along with selective migrations called profiles and executing arbitrary SQL. |
|
FluentMigrator.Runner.Oracle
FluentMigrator is a database migration framework for .NET written in C#. The basic idea is that you can create migrations which are simply classes that derive from the Migration base class and have a Migration attribute with a unique version number attached to them. Upon executing FluentMigrator, you tell it which version to migrate to and it will run all necessary migrations in order to bring your database up to that version. In addition to forward migration support, FluentMigrator also supports different ways to execute the migrations along with selective migrations called profiles and executing arbitrary SQL. |
|
FluentMigrator.Runner.SQLite
FluentMigrator is a database migration framework for .NET written in C#. The basic idea is that you can create migrations which are simply classes that derive from the Migration base class and have a Migration attribute with a unique version number attached to them. Upon executing FluentMigrator, you tell it which version to migrate to and it will run all necessary migrations in order to bring your database up to that version. In addition to forward migration support, FluentMigrator also supports different ways to execute the migrations along with selective migrations called profiles and executing arbitrary SQL. |
GitHub repositories (16)
Showing the top 5 popular GitHub repositories that depend on FluentMigrator:
Repository | Stars |
---|---|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
elsa-workflows/elsa-core
A .NET workflows library
|
|
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
|
|
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
|
Version | Downloads | Last updated |
---|---|---|
6.2.0 | 186,697 | 10/4/2024 |
6.1.4 | 3,064 | 10/2/2024 |
6.1.1 | 5,526 | 10/2/2024 |
6.1.0 | 624 | 10/1/2024 |
6.0.0 | 19,133 | 9/25/2024 |
5.2.0 | 1,502,837 | 3/28/2024 |
5.1.0 | 316,495 | 2/19/2024 |
5.0.0 | 644,737 | 12/10/2023 |
3.3.2 | 7,890,811 | 1/14/2022 |
3.3.1 | 1,520,592 | 9/21/2021 |
3.3.0 | 436,073 | 8/26/2021 |
3.2.17 | 1,001,250 | 6/17/2021 |
3.2.16 | 414,227 | 5/19/2021 |
3.2.15 | 1,298,641 | 2/19/2021 |
3.2.14 | 2,032 | 2/19/2021 |
3.2.11 | 430,612 | 1/9/2021 |
3.2.10 | 94,628 | 12/19/2020 |
3.2.9 | 1,968,023 | 8/25/2020 |
3.2.8 | 260,619 | 7/22/2020 |
3.2.7 | 574,048 | 6/8/2020 |
3.2.6 | 784,426 | 4/11/2020 |
3.2.1 | 3,884,159 | 4/16/2019 |
3.2.0 | 11,053 | 4/15/2019 |
3.1.3 | 1,417,776 | 6/25/2018 |
3.1.2 | 10,535 | 6/21/2018 |
3.1.1 | 26,034 | 6/11/2018 |
3.1.0 | 11,545 | 6/1/2018 |
3.0.0 | 73,169 | 5/7/2018 |
2.0.7 | 464,102 | 4/27/2018 |
2.0.6 | 33,982 | 4/24/2018 |
2.0.5 | 8,040 | 4/23/2018 |
2.0.4 | 6,051 | 4/23/2018 |
2.0.3 | 6,529 | 4/22/2018 |
2.0.2 | 119,647 | 4/17/2018 |
2.0.1 | 7,927 | 4/16/2018 |
2.0.0 | 13,306 | 4/15/2018 |
1.6.2 | 2,421,536 | 5/31/2016 |
1.6.1 | 511,319 | 11/9/2015 |
1.6.0 | 238,544 | 7/13/2015 |
1.5.1 | 106,952 | 4/17/2015 |
1.5.0 | 117,852 | 2/27/2015 |
1.4.0 | 66,035 | 12/31/2014 |
1.3.1 | 38,327 | 11/18/2014 |
1.3.0 | 150,147 | 8/27/2014 |
1.2.1 | 36,890 | 7/12/2014 |
1.2.0 | 17,612 | 6/18/2014 |
1.1.2.1 | 105,842 | 1/1/2014 |
1.1.2 | 6,549 | 12/29/2013 |
1.1.1 | 114,871 | 6/26/2013 |
1.1.0 | 33,040 | 5/5/2013 |
1.0.6 | 956,808 | 12/31/2012 |
1.0.5 | 14,510 | 11/15/2012 |
1.0.4 | 8,991 | 10/27/2012 |
1.0.3 | 17,651 | 7/19/2012 |
1.0.2 | 9,967 | 4/25/2012 |
1.0.1 | 31,238 | 9/5/2011 |
0.9.2 | 13,671 | 7/24/2011 |
0.9.1 | 5,917 | 7/24/2011 |
0.9.0 | 14,929 | 1/7/2011 |
Use of standard dependency injection, configuration and logging libraries.
Simplification of in-process runner configuration and instantiation.
Minimum .NET Framework version is 4.8, see https://aka.ms/msbuild/developerpacks for more information.
Details: https://github.com/fluentmigrator/fluentmigrator/releases