CRUD Operations Using Entity Framework in ASP.NET MVC

CRUD Operations Using Entity Framework in ASP.NET MVC

In this post we will learn about CRUD Operations Using Entity Framework in ASP.NET MVC. In earlier post we have discussed about How To Create New Asp.Net MVC 5 Site From Empty Template and How to display student information in MVCCRUD relates to(Select, Insert, Update and Delete) operations using ADO.NET Entity Framework in ASP.NET MVC.

Step 1: Open Visual Studio > New Project > Asp.Net MVC Web Application.

CRUD Operations Using Entity Framework in ASP.NET MVC

Step 2: Right click project file, select add new item and add ADO.NET entity data model, follow the steps in the wizard as shown below.

CRUD Operations in MVC  using Entity Framework Without Writing a Single Line of Code

CRUD Operations Using Entity Framework in MVC

CRUD Operations Using Entity Framework in MVC

6-30-2014 7-38-47 PM

6-30-2014 7-40-31 PM

Step 3: Now add a controller, by right clicking on the Controller folder.

Add Controller in MVC

Step 4: Now run your project and enjoy.

6-30-2014 8-17-54 PM