pekspro / EF-Migrations-Script-Generator-Task

24 stars 7 forks source link

Selective migrations #30

Closed danielferecatu closed 3 years ago

danielferecatu commented 3 years ago

Is it in the plan to support selective migrations?

Example:

- task: efcore-migration-script-generator-task@0
  inputs:
    projectpath:        "./path"
    databasecontexts:   "Context"
    startupprojectpath: "./startup"
    targetfolder:       "./target"
    from: "20210405144817_Migration10"     <- here
    to:   "20210405204343_Migration12"     <- here

The dotnet tool has already support for this: https://docs.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-migrations-script

pekspro commented 3 years ago

That is an interesting idea. I didn't know this was supported :-) I will try to do some reach in a couple of days, I'll get back to you then.

pekspro commented 3 years ago

This has now been added into the latest version. You find the settings in the advanced area. Thanks for the suggestion!