Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Why we use entity framework? what its benifits as compared to ado.net. entity framework also derived from ado.net. So whats benefits are?
Posted
Comments
aarif moh shaikh 24-Sep-15 4:05am    
do google... he will give u best answer

Entity Framework lets you treat tables (or general database entities you have defined which can be a combination of multiple tables) as POCO classes, manipulating them the way you would normal objects, setting properties, adding to collections etc, and it abstracts away all the data access code so you don't have to write it. It means you don't need to know anything about SQL or write any SQL code, just manipulate the objects given to you.
 
Share this answer
 
Entity Framework is an Object Relational Mapping (ORM). It is a bridge between domain object (business logic) and ---> RDBMS is Relational DataBases Management Systems that stores data as relational tables in spite of flat database are more flexible and structured.
EF provides an automated process to access (select) and maniplation (delete , insert, update) without writing too much code lines in Data Access Layer , in ADO.NET we had to write TSQL codes for everything we must do with DB { insert into table () values () } or {update table set field1=value1 ,...where ID=? } or {delete from table where ID=?}
Assume you have many feilds and you have to write code manually for each inserting deleting and updating so it takes so much time.


----------------------------
FYI go trough below link

http://www.technical.cosmicverse.info/[^]
 
Share this answer
 
v2
Entity frameworks offers two type of binding database first and code first, consider yourself you trapped in a situation where you don't know about the database you can use in future, so here is a solution "Code first approach", it is very simple and easy, also where it comes to maintaining or adding extra fields it is just awesome. Its comes handy when you are not sure about the things you are building and you keep changing the functionality.

I am not very sure it can efficiently handles huge database but for less records you can use entityframework
 
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