What are the advantages of using ADO.NET Entity Framework?

.net entity-framework orm

Question

I was reading this article about ADO.NET Entity Framework and found it to be very interesting though in the first shot I could not decipher many things. I am reading the article again in order to fathom the real logic behind this.

a) A question cropped in my mind is why we need an ORM framework (in general)?

b) And among other ORM frameworks present for .NET like Spring.NET, Linq to Sql , NHibernate etc. why will we prefer ADO.NET Entity Framework?

1
6
2/20/2010 11:00:20 AM

Accepted Answer

b. Subjective. I might not be able to offer a good opinion, as I have not used EF.

10
5/23/2017 12:00:17 PM

Popular Answer

There are several advantages. Important among them are :

  1. Provides dedicated functionality for CRUD operation (Create, Read, Update, Delete). Easy to implement CRUD operations.

  2. If you want to replace the data store, it is very easy to replace without modifying the data access logic since all data access logic are present in higher level.

  3. Easy to manage one to one, one to many and many to many relationship between tables.

  4. Conceptual model can be represented in a better way.

  5. Developer can reduce the code in classes and sub-classes for data access.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow