Web Forms is the classical programming framework of ASP.NET. Nowadays, much of the concepts and improvements we will see are common to the other development frameworks such as ASP.NET, MVC, and Web Pages.
In this recipe we will see how to work with the new capabilities of ASP.NET 4.5 by creating a Web Forms application.
Now, we will create a Code First ASP.NET Web Forms application that will create the database from code. We will also add some seed data.
First, open Visual Studio 2012 and create a new project. We will select the ASP.NET Web Forms Application template by going to visual C# | Web category, name it
wfSampleApp
, and press OK to create the application.After the project has been created, add and open the NuGet Package Manager by going to Tools | Library Package Manager | Manage NuGet Packages for Solution.
Add the Entity Framework package...