I am using FlunetMigrator.Runner.3.2.1 and see that this version no longer defaults to rolling back all migrations is one of them fails. It says they are per migration file! which doesn't add value. Is there a way to set the transaction per session whilst running it as a .net core console app.
I see there is this link https://fluentmigrator.github.io/articles/runners/runner-console.html but says use the Migrate.exe file which we are not using, we are using a console. Can I set the transaction level to session in the code?
Why would anyone want to run it and only have some of the changes done, All or nothing is a much better approach
I found the answer! you set it in the Runner options as shown below
Full method that create the IServiceProvide
The below code is the full example that uses the IServiceProvider
The Update Database code: