Learn how to migrate ASP.NET Web API 2.2 projects to ASP.NET Core MVC Services.
- [Phil] Welcome to Migrating Web API Applications to ASP.NET Core. My name is Phil Japikse, and I will be your host today. We are going to cover a lot of items today. You should thoughtfully consider whether or not you should migrate, and we'll talk about some of those considerations that you should think about. So we'll create all the projects. We'll update the packages, add all our additional packages such as EntityFramework and AutoMapper into the projects. And then we start by migrating the data access layer from Entity Framework 6 over to Entity Framework Core.
Once we have the data access code migrated and tested, we then move on to migrating the Web API 2.2 site. In the final section, we are going to migrate the controller and we wrap everything up by making sure our unit tests pass. And once all those tests pass, we have successfully migrated our Web API 2.2 projects over to ASP.NET Core.
- Creating the .NET Core project
- Adding Entity Framework
- Migrating the data access layer (DAL)
- Configuring services and the HTTP pipeline
- Adding remaining services to the dependency injection container
- Migrating controllers and actions
- Testing the services