Difference between ado.net and entity framework in.net?
Hi frnds
I need the below ans please help on this.
1 . Difference between entity framework and ado.net?
2 . Advantage of entity framework?
3 . Which is The better and why ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manikandan MurugesanRank #300 · 8.4K reputationPosted Sep 9, 2017, 5:34 PM EDT
Advantages:
One common syntax (LINQ) for all object queries whether it is database or not , Pretty fast if used as intended , easy to implement SoC , less coding required to accomplish complex tasks.
Its fast and straight forward using LINQ/FE objects For Add/Modify/Delete/Update.
Easy to map business objects (with drag & drop tables on environment). It keeps a good performance when you work with a small / middle domain model.
Disadvantages:
You have to think in a non-traditional way of handling data , not available for every database.
If there is any schema change in database FE won’t work!!! You have to update the schema in solution as well!!!
It's limited when you work with a huge domain model. -Scalability.
3>The number in a Microsoft screencast is a maximum of roughly 250 tables per EF model. That doesn't mean EF can't handle more. If the amount of the your table is smaller than 250, you can use EF whenever, if you have more than 250 tables, e.g. 1000+, I think you have to break up your 1000+ tables into several logical groups of tables, and use one EF model per such logical group (with up to 250 tables in it). If you do not want to have several model in a project, then 1000+ tables in one model is not so good.Mageshwaran RRank #411 · 6.1K reputationPosted Nov 22, 2019, 7:19 AM EST