In this section we are going to learn the Database operations in ASP.NET MVC using Entity Framework.
Entity Framework (EF) is an object-relational mapper that helps .NET developers to work with relational data using domain-specific objects. In terms of MVC, we call these objects as Model.
If you use EF, we do not need to use any data access related code like ADO.NET (SqlConnection, SqlCommand etc.). Entity Framework does all job for and give us an DbContext object that we can use to work with the database tables.