8 ms·
are people even writing their own sql queries anymore?
by peter_w87 5y ago
are people even writing their own sql queries anymore?
- JoelJacobson 5y agoYes, a lot of people actually do for sure. I would say especially if you also define your data models in SQL, and let the SQL database be the primary source of truth for what the data model is.
- peterw_87 5y agothats pretty hard core. like writing machine code. i just use the wizard for creating my db. then i can use my c# class objects directly. but i don't know sql.
- IggleSniggle 5y agoI’m in the opposite boat. What is this “wizard” you speak of?
- signa111 5y agoYou can use database first in ef core and probably in other orms if you want the sql db model to be the source of truth. Then you can achive the same thing without having to write your own SQL. For new systems its still better to use code first. Database first is for legazy systems.
- continuational 5y agoNonsense, it's a very valid approach to design your data before your code. Especially since your database tends to far outlive any code you write against it.