- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Form binding in minimal APIs
Exploring the .NET 8 preview - Part 7
In this post I discuss the new form binding support for minimal APIs, the current limitations and rough edges, and how to work with antiforgery tokens…

Using CancellationTokens in ASP.NET Core minimal APIs
In this post I'll show how you can use CancellationTokens in your minimal API handlers to stop execution when a user cancels a request from their browser…

Serializing a PascalCase Newtonsoft.Json JObject to camelCase
In this post I describe one of the quirks of serializing a JSON.NET JObject, and show how to get camelCase names from a PascalCase JObject.…

Creating a not-empty GUID validation attribute and a not-default validation attribute
In this post I describe an MVC validation attribute that verifies a GUID doesn't have the default Empty value. I also present a generalised version.…

Coming in ASP.NET Core 2.1 - top-level MVC parameter validation
This post looks at a feature coming in ASP.NET Core 2.1 related to Model Binding in ASP.NET Core MVC/Web API Controllers - top-level parameter validation.…

Using CancellationTokens in ASP.NET Core MVC controllers
In this post I'll show how you can use CancellationTokens in your MVC action methods to stop execution when a user cancels a request from their browser…

