migratordotnet

How do you tell if your migrations are up to date with migratordotnet?

感情迁移 提交于 2019-12-08 07:10:27
问题 I'm using migratordotnet to manage my database migrations. I'm running them on application setup like this, but I would also like to check on application startup that the migrations are up to date, and provide the option to migrate to latest. How do I tell if there are available migrations that need to be applied? I see that I can get the migrations that were applied like this var asm = Assembly.GetAssembly(typeof(Migration_0001)); var migrator = new Migrator.Migrator("SqlServer", setupInfo

.NET migrations: Setup and migrate multiple databases at runtime

梦想与她 提交于 2019-11-30 13:02:31
Brief introduction: I have this ASP.NET Webforms site with the particularity that it doesn't have only 1 database, it has many. Why? Because you can create new "instances" of the site on-the-fly. Every "instance" share the same codebase, but has its own database. These all databases have the same schema (structure) but of course different data. Don't ask 'why don't you put everything in one database and use InstanceId to know which is" because it's a business policy thing. The application knows which instance is being requested because of the url. There is one extra database to accomplish this

.NET migrations: Setup and migrate multiple databases at runtime

最后都变了- 提交于 2019-11-29 18:31:06
问题 Brief introduction: I have this ASP.NET Webforms site with the particularity that it doesn't have only 1 database, it has many. Why? Because you can create new "instances" of the site on-the-fly. Every "instance" share the same codebase, but has its own database. These all databases have the same schema (structure) but of course different data. Don't ask 'why don't you put everything in one database and use InstanceId to know which is" because it's a business policy thing. The application

Two different assembly versions “The located assembly's manifest definition does not match the assembly reference”

落爺英雄遲暮 提交于 2019-11-28 05:07:52
问题 I have a project that I am working on that requires the use of the Mysql Connector for NHibernate, (Mysql.Data.dll). I also want to reference another project (Migrator.NET) in the same project. The problem is even though Migrator.NET is built with the reference to MySql.Data with specific version = false, it still tries to reference the older version of MySql.Data that the library was built with instead of just using the version that is there.. and I get the exception listed in the title: ---