When using Package Manager Console, you can run the following command:
PM> Update-Database -Verbose The -Verbose switch will write all attempted SQL commands to the console window, which is quite useful for debugging.
You can use the DbMigrator class to do the same in code:
Configuration config = new Configuration(); //... (set up the config object) DbMigrator migrator = new DbMigrator(config); migrator.Update(); Is there something like the -Verbose switch if you use the DbMigrator class? I looked all over the documentation, but couldn't find anything.