Tutorials on ASP.NET Core, Blazor, jQuery, JavaScript, Entity Framework, Identity, WordPress, SQL, HTML & more


How to perform Logging in ASP.NET Core

Last Updated: February 13, 2026

Logging is an essential part of ASP.NET Core apps which help us to monitor app behavior and diagnose problems. By default the following 4 providers are added whenever we create a .NET app. These are:

(more…)

Deploy ASP.NET Core Dockerized app to Azure with GitHub Actions CI / CD

Last Updated: February 5, 2026

In this tutorial we will Deploy an ASP.NET Core Dockerized App to Azure Container Apps using GitHub Actions CI / CD pipeline. The full working of the process is described in the below image:

(more…)

Deploy ASP.NET Core app to Azure with GitHub Actions CI/CD

Last Updated: February 1, 2026

GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows to automate build, test, and deployment of our apps. In this tutorial I will deploy an ASP.NET Core app to Azure App Services through GitHub actions CI/CD deployment pipeline.

GitHub Action

GitHub Actions is a CI/CD platform which is integrated into your GitHub repository. This means you can run a CI/CD pipeline right from your GitHub repository. GitHub Actions are organized into Workflows, which are automated process that will run one or more jobs. A common example of a Workflow is to automatically build and deploy your app to Azure whenever the app is pushed to the GitHub repository.

The GitHub Actions kick off based on Events. Events can be anything like a push to the repository or a pull request, and so on.

Runners are the machines that execute jobs defined in a GitHub Actions Workflow. For example, a UBUNTU runner machine can clone your repository locally, install testing software, and then runs the tests.

In the below figure GitHub actions working is explained. An Event kicks the Runners that executes the different Jobs defined in the WorkFlows.

GitHub Actions Architecture

(more…)

Configuring Nginx as Reverse Proxy and Load Balancer for Dockerized ASP.NET Core apps

Last Updated: January 15, 2026

Nginx is a high-performance, open-source web server that can also be used as a reverse proxy, load balancer, HTTP cache, and mail proxy. It is highly efficient with many simultaneous connections due to its event-driven architecture. Nginx is a core component in modern web infrastructure due to it's reliability, speed, and scalability. Nginx is available for all operating systems - Windows, Linux, macOS included.

(more…)

Entity Framework Core Testing Procedure

Last Updated: January 15, 2026

Testing is an important part of any application since it tells the developers that their application works correctly. In this tutorial we are going to learn the different techniques to employ in order to test Entity Framework Core codes. These techniques are broadly divided into testing with production database or without the production database. These are:

  • Testing against the production database.
  • Testing without the production database - here we use SQLite (in-memory mode) as a database fake, EF Core in-memory provider as a database fake, Mock DbSet and use repository layer to exclude EF Core entirely from testing and to fully mock the repository.
(more…)

Docker Volumes on ASP.NET Core App

Last Updated: January 15, 2026

Docker Volumes are persistent data stores for containers created and managed by Docker. Volumes are stored within a directory on the host machine and not inside the container. When we mount the volume into a container, then this directory is what's mounted on the container. If an app is storing some data on files inside the container then in case of a container crash the data is bound to be lost. Volumes comes into this scenario since here we can save these files on the volumes, in case of container crash the volume is unaffected (since it is outside the container), so the files are not lost.

(more…)

Entity Framework Core Interceptors

Last Updated: January 15, 2026

Entity Framework Core (EF Core) interceptors allow interception, modification and suppression of EF Core operations. Some examples include executing a command, call to SaveChanges and so on. You can download the source code from my GitHub repository.

(more…)

Entity Framework Core Events and Diagnostic Listeners

Last Updated: January 15, 2026

Entity Framework Core Events and Diagnostic Listeners are very helpful in debugging our EF Core code. Events are called when something happens in EF Core codes. For example DbContext.SaveChangesFailed event is called when SaveChanges or SaveChangesAsync method is failed so we can use this event to find out the cause of the failure. Diagnostic listeners allow listening for any EF Core event for obtaining diagnostic information of the app. In this tutorial we are going to implement each of these 2 in our code.

Download the source code from our GitHub repo.
(more…)

Entity Framework Core Logging in details

Last Updated: January 15, 2026

Logging is an important aspect of any .NET app for debugging purpose. Through Logging we can generate SQL logs and Change Tracking information in Entity Framework Core. There are 2 types of logging in EF Core:

  1. Simple logging
  2. Microsoft.Extensions.Logging
(more…)

Entity Framework Core Change Tracking

Last Updated: November 17, 2025

Entity Framework Core Change Tracker keeps track of all the loaded entities changes and these changes are applied to the database when SaveChanges method is called.

Entities are tracked on the following conditions :

  1. Returned from a query executed on the database.
  2. Attached to the DbContext by Add, Attach, Update methods.
  3. A new entity connected to an existing tracked entity.
The full codes implemented in this tutorial can be downloaded from my GitHub repository.
(more…)