4 ms·
I prefer dB first. Create an SQL project that defines the schema. It automatically compares the schema with your current dB schema and auto generates a migrati
by mmusc 7y ago
I prefer dB first.
Create an SQL project that defines the schema. It automatically compares the schema with your current dB schema and auto generates a migration script for you.
Then update entities from the dB.
Few steps involved but avoids writing and maintaing migrations yourself.
- breakingcups 7y agoCode-first does this too, but based on a schema you define in your code and not in your DB.
- NicoJuicy 7y agoI would like to suggest code-first, at least try it once. I don't want to go back to any sort of migrations outside of this.