Database First with ASP.NET MVC using EF
Using MVC, Entity Framework, and ASP.NET Scaffolding, you can create a web application that provides an interface to an existing database. This tutorial series shows you how to automatically generate code that enables users to display, edit, create, and delete data that resides in a database table. The generated code corresponds to the columns in the database table. This part of the series focuses on using ASP.NET Scaffolding to generate the controllers and views. Add scaffold You are ready to generate code that will provide standard data operations for the model classes. You add the code by adding a scaffold item. There are many options for the type of scaffolding you can add; in this tutorial, the scaffold will include a controller and views that correspond to the Student and Enrollment models you created in the previous section. Database First Approach of Entity Framework In Database First approach, we need to have existing database and need to create business model ...