December 5, 2022

ASP.NET Core Web API: Exception Handling

In this post, let’s see how we can provide a common approach for handling exceptions in ASP.NET Core Web APIs in the Development environment as well […]
December 4, 2022

ASP.NET Core: Suppress Implicit Required Model Validation For Non Nullable Reference Types

In this post, let’s see how we can disable implicit required model validation for non-nullable reference types when the nullable context is enabled in an ASP.NET […]
December 2, 2022

JsonExtensionDataAttribute in System.Text.Json.Serialization

In this post let’s have a look at this nice attribute JsonExtensionDataAttribute that’s available in System.Text.Json.Serialization Namespace. I had a requirement where I have an integration API that […]
December 1, 2022

C# 11.0: File-local Types

In this post let’s have a look at one of the newest additions to C#, which is the file access modifier.  For types that are declared with file access modifier, […]
November 9, 2022

.NET: Using dotnet user-jwts to Create Development Time JWT Tokens

In this post, let’s see how we can easily create JWT tokens for Development purposes using dotnet user-jwts.  Consider the following code. using Microsoft.AspNetCore.Authentication.JwtBearer;using System.Security.Claims; WebApplicationBuilder builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddAuthentication(
November 2, 2022

.NET 7.0: ArgumentNullException.ThrowIfNullOrEmpty()

In this post, let’s have a look at this nice little feature that’s available with .NET 7 and C# 11.0. With .NET 6 and C# 10.0, […]
October 13, 2022

ASP.NET Core: HTTP Logging

In this post let’s see how easy it is to set up HTTP Logging in an ASP.NET Core application. You just need to add the HTTP […]
September 12, 2022

C# 11.0: Required Members

Just a couple of months to go for .NET 7 final release, as you might already know, some of the C# 11.0 features are already available.  […]
September 12, 2022

C# 11.0: Required Member

Just a couple of months to go for .NET 7 final release, as you might already know, some of the C# 11.0 features are already ready […]
August 15, 2022

EF Core: OnDelete DeleteBehavior ClientSetNull Vs. SetNull in an Optional Relationship

In this post, let’s have a look at the difference between DeleteBehavior.ClientSetNull and DeleteBehavior.SetNull when configuring OnDelete action in an Optional EF Core Relationship.  I am finding this important […]
August 13, 2022

ASP.NET Core: Rate Limiting with .NET 7 Preview 6

With the upcoming .NET 7, there’s a new NuGet package System.Threading.RateLimiting coming to manage the Rate Limiting. We can use rate limiting to protect a resource from getting […]