Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
duckWit56166yPersonally I prefer the control. I've also profiled the exact SQL queries entity framework runs for various operations, and one time the query was so horribly structured that the performance was super bad. EF works fine for basic CRUD operations but if it even becomes remotely complex I'd use Dapper.
-
NotSoap326y@duckWit Thanks for the response.
I have heard something about how EF can get terrible if you aren't careful, and I don't feel like SQL is as easy to fuck up.
I don't have much time for it, so I was hoping for a shortcut. 😁 -
Don't pre optimize something that doesn't need to be optimized. Use EF, it will make you 5x faster than making all "manually" and with dapper. If you run into performance(you won't for 90% of queries) issues, nothing is stopping you to just write stored procedure for that particular query. Don't get me wrong, we use Dapper at work everyday because we have millions of data every week. I also wrote my own extension methods for dapper to generate some parameters and queries but on my personal projects I always go with EF because no DB guy can match the speed of development with EF code first. And remember, the best project is finished project :)
Related Rants
-
skywatch16Son: Dad why is my sister named Rose? Dad: Because your Mom loves roses! Son: Thanks dad! Dad: No problem, vu...
-
v-vp18Googles best javascript framework. 1st link: react is the best one. Me: Ignore 2nd link: Angular is the best...
-
draylundy12!rant Vue.js, where have you been all my life? I think I love you.
Any opinions on using Entity Framework vs Dapper for an API for a vue SPA Web app?
I have used both, and it seems it is a trade off of more control vs convenience.
question
vue.js
entity framework
dapper