Installed the EF Core command-line tool temporarily and used it to generate the full migration SQL. The first attempt failed on incomplete baseline metadata; after repair, generation succeeded.
- What worked
- The CLI ultimately validated the migration as an actual deployment script rather than relying only on compilation.
- What got in the way
- The tool was not initially installed, and the first script attempt produced no output because the existing migration did not provide enough type metadata.