Pergunta

The scenario is simple, an app that is modular and each module has to manage its own portion of the database during upgrade.

The ORM in use is NHibernate, so if there is something that plays well with it that's an added plus.

Also, it needs to be able to execute without external tools (MSBuild etc) and instead it should run through ADO.NET (like NHibernate's SchemaUpdate).

Foi útil?

Solução

I find that Fluent Migrator works very well. If you version your migrations using the current date and time (eg. V201209111740UpdateTableX) then you won't run into problems with clashing version numbers, and Fluent Migrator will run any versions that haven't been run in order (afaik). It doesn't specifically have "partial" versions but using it normally should work.

Also, you can run it in your own app - you don't need to run it through MSBuild or through it's own tool

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top