There are a lot of post about rails-like database migrations in .NET, but none of them seem to do what I want them to do.
I have a WPF project and we're using Prism to create loadable modules. What I'd like to do is allow the module to hand off a database migration to the core at load time, with migration and any seed data. If that migration already exists, it ignores it, otherwi开发者_C百科se it migrates (or updates if a new version- not sure how to work that)
It seems like all of the systems are using NAnt or MSBuild and I wondered if there was a framework out there for runtime migrations. If not, has anyone seen such runtime database manipulation elsewhere to emulate? Good directions or ideas?
You mean something like FluentMigrator?
After more searching, I found this question: https://stackoverflow.com/q/8033/50079
which has more valuable answers. Have a look at it as well.
精彩评论