On build, I want to automatically create a sql script to generate a fresh database. I plan to use this script so I have can create a master database I can compare with the production database, to generate a migration script. I can't use my development DB, because I have it setup to use SqlCE during development.
Unfortunately, I can't seem to find anything in the CodeFirst API to generate a sql script. I'm sure it's possible, because model-first does it. I see the API calls on my DbContext to initialize a database, but nothing that gives me the script to actually initialize it myself.
I also want to have this script generated on build. What is the best way to have that occur? I was thinking to create a T4 template, and use Chirpy to have it run it on build, but I am wondering if there is a simpler solution.