What is Entity framework?

ADO.NET entity is an ORM (object relational mapping) which creates a higher abstract object model over ADO.NET components.

So rather than getting in to dataset , datatables , command and connection objects as shown in the below code , you work on higher level domain objects like customers , suppliers etc.

DataTable table = adoDs.Tables[0]; 
for (int j = 0; j < table.Rows.Count; j++) 
   DataRow row = table.Rows[j]; 
   // Get the values of the fields 
   string CustomerName = (string)row["Customername"]; 
   string CustomerCode = (string)row["CustomerCode"]; 

Below is the code of entity framework in which we are working on the higher level domain objects like customer rather than working with base level ADO.NET components( like dataset , datareader , command , connection objects etc).

foreach (Customer objCust in obj.Customers)