Posts

Code First Approach with ASP.NET MVC Framework

Image
Code First Approach with ASP.NET MVC Framework Introduction This article shows how to create an ASP.NET MVC application using the Entity Framework Code First approach.  This assumes no previous knowledge of the Entity Framework and it shows how to create MVC Application and to add Entity Framework to the project  step by step. Prerequisites SQL Server Visual Studio 2017 ASP.NET MVC Demo Open Visual Studio , I have installed Visual Studio  2017  Enterprise edition  with  version 15.8.1 Step 1 Go to File → New → Project   You will see the New Project Window below. Select ASP.NET Web Application Project Template . Give it a name and a location then  Click OK . In this sample, I have created it as EntityFrameworkDemo. Step 2 Then , The below window will appear to you. Now You can select a project template to create an ASP.NET MVC application. Now, I'm going to select an...