Re:Literate SQL
by weberc2 on Sunday June 25, 2017 @07:02PM
(#14632712)
How does an ORM know what your database schema is at compile time? Honest question.
[ Parent
| on HN ]
Re:Literate SQL
by mikaelhardo on Monday June 26, 2017 @04:50AM
(#14635134)
You either generate a model based on your database, or generate your database from your model.
That way the database and model are always in sync and you get errors in the code. In Entity Framework this is called either "Code first" or "Database first"