API Versioning with ASP.NET Core 6.0 Minimal APIs

This post is about how to implement api versioning in ASP.NET Core 6.0 Minimal APIs. Earlier Minimal APIs versioning was not supported. Recently ASP.NET Core team introduced versioning in ASP.NET...

Continue reading...

Creating your first Azure Container App

08 Aug 2022

This post is about what is azure container app and how to deploy a docker image to azure container app....

Continue reading

Mount your Azure Cloud Shell to another Storage Account

05 Aug 2022

This post is about switching or mounting the Azure Cloud shell to another storage account. We are using Azure Cloud...

Continue reading

Unit Testing ASP.NET Core Minimal APIs

This post is about implementing unit testing ASP.NET Core Minimal APIs. This feature is only available in .NET Core 7 Preview. If you’re using .NET Core 6. This will not work. So first you need to install the .NET 7 preview. For the demo I am using this 7.0.100-preview.6.22352.1 version....


Custom scaffold templates in ASP.NET Core

This post is about customizing the scaffold templates controllers and views in ASP.NET Core. We can achieve this by simply modifying the templates in this folder - %USERPROFILE%\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\6.0.6\Templates (the number 6.0.6 will change based on the SDK version) - but if we modify the template files in this folder it...


Building Minimal API endpoints from EF Core DbContext

This post is about building Minimal API endpoints from EF Core DbContext. When building APIs using EF Core and Minimal APIs, most of the time we will be writing the same code again and again. Recently I found a nuget package - InstantAPIs - this package helps to generate CRUD...


Working with Database First Approach in Entity Framework Core

This post is about working with Database First approach in Entity Framework Core. This approach is useful in scenario where we already got a Database and we need to generate model and db context classes. So for the demo purposes I am using an class library project and an ASP.NET...