Get Started - After installing MVC framework SDK you will see a new template in installed visual studio templates 'ASP.NET MVC Web Application'.
Next step if you want create unit test project or not? When you create a new ASP.NET MVC application, the Create Unit Test Project dialog appears (see Figure 2). This dialog enables you to create a separate project in your solution for testing your ASP.NET MVC application. Select the option No, do not create a unit test project and click the OK button.
After the new ASP.NET MVC application is created, you will see several folders and files in the solution explorer. There are five folders by default Content, Controllers, Models, Scripts, and Views.
After execution output will look like this.
Now time to add a new item 'LINQ to SQL Classes' template.
In this MVC application I am using NORTHWND database you can copy that from App_Data folder.
Now drag and drop your database table from Server Explorer.
Now add a new Controller in Controllers folder and check that Add action for Create, Update and Details scenario and click Add.
HomeController.cs will show some methods like this.
Add some code to show data in list on Index method.
From Create.aspx you have to remove ProductID paragraph because this is auto generated column.
See full details: http://www.c-sharpcorner.com/UploadFile/raj1979/MVCUsingLINQSQL10092009060837AM/MVCUsingLINQSQL.aspx