Blog: ASP.NET Core

Azure DevOps: Create a Web App for Containers CI/Release pipeline for an ASP.NET Core app

October 17, 2018, Software Development

In this tutorial we will: Step 1: Build an ASP.NET Core app and push the sources to a Git repository Step 2: Setup the required Azure resources (Web App for Containers, etc.) Step 3: Setup an Azure DevOps CI build which builds a Docker image and pushes it to a private Azure Container registry (ACR) Step 4: Create an Azure DevOps release pipeline which deploys the new Docker image to a Linux based Web App for Containers (App Service) Important: The tutorial is using the name DockerDemo for the demo project and Azure resources. It is recommended to use a […] Read more...

Tags: , , , , , , ,

Automatically migrate your Entity Framework Core managed database on ASP.NET Core application start

March 20, 2018, (updated on September 20, 2018), Software Development

If you use Entity Framework Core with migrations in your ASP.NET Core application and want to ensure that the database structure always matches the currently running application, you can simply migrate the database on application startup. This way you just have to redeploy your application and everything like migrating the data, change the schemas, etc. is done when the application is restarted. To do an automatic migration, register your DbContext implementation in the ASP.NET Core’s dependency injection system – the same way as it is already recommended by Microsoft. Because there is no active injection scope in the Configure() method, […] Read more...

Tags: , , ,

  Page 1 of 1