Phil Japikse begins by showing how to install and update the .NET Core SDK. He reviews the functionality of the MVC 5 app, explains how to create necessary projects, and discusses migrating static content. Next, he demonstrates how to create a data access layer, complete the server-side migration, set up the HTTP pipeline, add custom items into the dependency injection container, leverage the new project configuration system, and migrate the controllers. Phil then introduces Tag Helpers—one the big new features in ASP.NET Core—and uses them to migrate and simplify the views. Phil also demonstrates how to create and use custom Tag Helpers. To wrap up, he covers working with view components, explaining what they are and why they're helpful. He walks through how to create the server-side view component code, and how to refactor your app and invoke the view component.
- Reviewing the MVC 5 application
- Creating the data access layer
- Adding and updating the models
- Updating the database
- Completing the server-side migration
- Configuring the HTTP pipeline
- Configuring and using dependency injection
- Migrating the views
- Creating view components
Skill Level Intermediate
- Good morning, good afternoon, good evening, depending on what time it is when you are watching this course. My name is Phil Japikse, and welcome to Upgrading from MVC5 to ASP.NET Core MVC. In this course, we're going to start off by installing Visual Studio 2017 and the .NET Core SDKs. Talk a little bit about how to use the download file. We're going to talk about migration considerations.
Should you migrate if you've got a working MVC 5 app? We're going to take a look at the MVC 5 application, create all the necessary projects, and then talking about running the application, configuration and environment settings have become much cleaner in Core MVC. We'll talk about those. Next we're going to talk about migrating static content. In the next section we're going to create the data access layer. The Microsoft SDK sample application. The MVC movie application that's been upgraded through a few versions of MVC.
We're going to create a true data access layer using EF Core. We're going to talk about the changes with migrations, create some repositories, and then see the data with initial data. We'll create a custom validation attribute, and then finally we'll build the necessary view models for our application. The movies controller is up next. After the controller is complete, we will move into the views. We'll update each of the individual pages, create a display template, and then finally we'll finish off this section by creating a custom tag helper.
The last section introduced is one of the other big, new features in Core MVC, and those are view components. We'll talk about what they are and why they help. Then we'll create the server side view component code, create the partial view that's implemented by it, and then re-factor our application and invoke the view component. We have a lot to cover, so let's dive in and get started. I hope you enjoy the course.