3 ms·
How does an ORM know what your database schema is at compile time? Honest question.
by weberc2 9y ago
How does an ORM know what your database schema is at compile time? Honest question.
- mikaelhardo 9y agoYou 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"