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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mageshwaran RPosted Nov 22, 2019, 12:19 PM
Manikandan MurugesanPosted Sep 9, 2017, 9:34 PM
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.