Introduction:
This tutorial will teach you the basics of building an ASP.NET MVC 5 Web application using Visual Studio 2013. I'll show you step-by-step operations using simple screen shorts. So get ready for that journey.
You need to about ASP.NET, SQL Server 2008 R2 & Visual studio 2013.
- Models: Classes that represent the data of the application and that use validation logic to enforce business rules for that data.
- Views: Template files that your application uses to dynamically generate HTML responses.
- Controllers: Classes that handle incoming browser requests, retrieve model data, and then specify view templates that return a response to the browser.
How MVC works?
Application process:
Now create the project
- Open visual studio 2013, select new project
- Select ASP.NET Web application & assign name MyMVCApp then just click ok.
- Then select MVC & just click ok buttons.
- Now right click into model then add then New Item
- Now select ADO.NET Entry Data Model and write the name “MyAppEDM” and just click Add button.
- Now select Generate from database then click next.
- Now click New connection.