The essence of ADO.NET is ORM (Relational Object Mapping), which creates a higher abstract object model over ADO.NET components. Therefore, instead of entering a data set, data objects, commands, and connection objects, as shown in the code below, you work on objects of a higher level of the domain, such as customers, suppliers, etc.
DataTable table = adoDs.Tables[0]; for (int j = 0; j < table.Rows.Count; j++) { DataRow row = table.Rows[j];
Below is the code for the Entity Framework, in which we work on objects of a higher level, such as a client, and not with the basic levels of ADO.NET components (such as a dataset, datareader, command, connection objects, etc.).
foreach (Customer objCust in obj.Customers) {}
The main and only advantage of EF is the automatic creation of code for the model (middle level), data access level and display code, which reduces development time.
here
source share