The Entity Framework
The Entity Framework is the Object Relational Mapping (ORM) framework that enables developers to work on domain-specific objects directly for data access instead of working on database queries. This reduces a lot of the code complexity in the data access layer in the application.
Before discussing the Entity Framework and its features, let us pause for a moment and think about the steps that we follow when we try to save some information to the database when using ADO.NET:
Construct the business domain object.
Create a connection to your database.
Open the connection.
Create a command object along with the command type.
Add the properties of your business domain object to the parameters of the command object.
Execute the command that saves the data into the database.
We have to follow the previously mentioned six steps for common operations such as saving a piece of data into the database.
If you are using an ORM framework such as the Entity Framework, you just need three steps...