Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.40/5 (3 votes)
See more:
I wanted to know What are the benifits of entity Framework?
why it is used.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Aug-14 3:28am    
Benefits compared to what? Why not just reading the documentation on the technologies you are considering? Why do you think the answer quickly written specially for you could be better than that? If you has some more specific concerns, it would be a different story.
—SA
Dj@y 26-Aug-14 6:26am    
Thanks for your suggestions...
Sergey Alexandrovich Kryukov 26-Aug-14 10:17am    
You are welcome.
—SA
ChauhanAjay 26-Aug-14 3:28am    
Check this article
http://forums.asp.net/t/1692401.aspx
Hope it helps

I found the followings are some of the advantages of Entity Framework:

1) Entity Framework handles to core complexity of interaction of code with database. You don't need to write code directly to database, rather you write to the Context which behind the scene interacts with database.

2) It handles the SQL injection vulnerability attack. If you are using EF then you are assured that there is almost zero possibility of SQL injection attack.

3) You can write LINQ queries which definitely will reduce the code complexity and also the code will be little cleaner.

4) The future maintenance will be easier. It easily adapts the database changes. For example, if you are renaming a column in one table, then you don't need to change your code in every places. If you can change the column mapping for the corresponding column with the model property then it will work seamlessly.

5) When you write code to EF, it provides intellisense and also validates the code in compile time.

Hope it helps.
 
Share this answer
 
Here you can find some basic and easy to understand Entity Framework Advantages
http://www.dotnetspan.com/2014/07/advantage-of-entity-framework.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900