C# alternative of rails migrations [closed]
Does anyone know of a C# tool that behaves in a similar way to migrations in Ruby on Rails?
So a rails migration is a ruby file which contains a construct and destruct method.
The point of migrations are to make amendments to a database (either structural or data). It's possible to apply changes to the DB and also roll them back. It's a really neat solution.
for more information check this link Rails Guides: Migr开发者_高级运维ations
There is Fluent Migrator.
FluentMigrator
Fluent Migrator is a migration framework for .net much like Ruby Migrations.
The main options I'm aware of are migrator.net and rikmigrations
How about octalforty-wizardby
http://code.google.com/p/octalforty-wizardby/
Here's a brand new one: https://github.com/dradovic/MigSharp
It has support for SQL Server 2005/2008/CE 4, Oracle, and Teradata. It also includes a nice validation framework that checks your migrations for potential cross-db issues and gives you hints to how to resolve them.
On top of that, it has a couple of more interesting features: multi-module support, deterministic SQL generation, etc. Read on here: https://github.com/dradovic/MigSharp/wiki/Feature-Overview
The Subsonic ORM has a built in migration feature. Here's a link to the docs - 3.0 Migrations
Database/datastore agnostic solution: https://github.com/Mission3/migrations
精彩评论