.NET Training Overview
This course provides a practical hands-on introduction to developing Web applications using ASP.NET MVC 5 and C#. This Web development framework from Microsoft emphasizes separation of concerns in the architecture and testability of applications. The course includes coverage of the Razor View Engine, Entity Framework 6 and ASP.NET Web API 2. It also introduces Windows Azure and the deployment of ASP.NET MVC applications to the Azure cloud.
For Microsoft’s cross-platform ASP.NET Core please see course, ASP.NET Core MVC.
The course covers the fundamentals of the Model-View-Controller design pattern and its implementation in ASP.NET MVC. This technology is compared with classical ASP.NET Web Forms. The two technologies share a common ASP.NET infrastructure. Visual Studio 2017 with .NET 4.5.2 is used as a productive platform for creating ASP.NET MVC applications. After presenting the fundamentals of the technology with several examples, the main components of Model, Controller and View are covered in detail. The discussion of the Model incorporates modern Microsoft data access technologies, including SQL Server 2016, LINQ and ADO.NET Entity Framework 6. The routing mechanism of ASP.NET MVC is covered. The course introduces automated unit testing of Web applications, one of the chief advantages of the new technology. Security is covered, with some hands-on illustrations of attacks and defenses against them. The course includes a discussion of how ASP.NET MVC and Web Forms can be used together in the same application. The course includes with an introduction to ASP.NET Web API and concludes with deployment to Windows Azure. An appendix covers deployment on IIS 7.5
Numerous programming examples and exercises are provided. The student will receive a comprehensive set of notes and all the programming examples.
.NET Training Objectives
.NET Training Prerequisites
The student should have a good working knowledge of C# and the .NET Framework. Basic knowledge of ASP.NET and HTML is also required.
.NET Training Course duration
3 days
.NET Training Course outline
1. Introduction to ASP.NET MVC
2. Getting Started with ASP.NET MVC
3. ASP.NET MVC Architecture
4. The Model
5. The Controller
6. The View
7. Routing
8. Unit Testing
9. Security
10. Combining ASP.NET MVC and Web Forms
11. ASP.NET Web API
12. Deployment on Windows Azure
Appendix A. Learning Resources
Appendix C. Deployment in IIS 7.5
IIS 7.5
MVC with IIS 7.5
XCOPY Deployment
System Requirements
Required software is Visual Studio 2017, which includes LocalDB, a lightweight version of SQL Server 2016 Express. The free Visual Studio Community 2017 may be used. The operating system should be Windows 7SP1 or more recent. Several free tools are also used. These can all be downloaded from the Web. The last chapter requires a connection to the Internet, and a Windows Azure account (a free trial account is available from Microsoft). See the course Setup Notes for details.
A good minimal hardware profile for this course would have a 2 GHz or equivalent CPU, 4 GB of RAM, and at least 10 GB of free disk space for tools installation and courseware.