I created a Migration in visual studio I added Fluent Migrator to my project with Nuget, but how do I run the migration to add the tables and columns to my database?
Fluent Migrator Tools
nuget package inside our
Migrations project. This will download and extract a Migrate.exe
executable. This executable can be used to execute your migrations
from the command line, exactly what we needMigrate.exe
and the FluentMigrator.Runner.dll
assemblies to
your project by right-clicking on the project and selecting Add an
existing item. Navigate to the packages folder of your solution and
pick the Migrate.exe and the FluentMigrator.Runner.dll
that are
somewhere inside the FluentMigrator.Tools folder. Make sure you
select Add as linkMigrate.exe
and
FluentMigrator.Runner.dll
items in your Visual Studio project, and
set it to Copy to output directory: Copy alwaysTitle: FluentMigrate
Command: $(BinDir)\Migrate.exe
Arguments: --provider sqlserver2008 --a $(TargetName)$(TargetExt)
Initial Directory: $(BinDir)
Use output window: click checkbox