When working with Entity Framework Core, understanding change tracking behavior is crucial for both performance and data consistency. While I was ware of the AsNoTracking() method, I discovered a lesser-known but powerful alternative: AsNoTrackingWithIdentityResolution() during a code review. | The art of simplicity
Welcome to the final post in our file upload security series. We've covered content type validation, file size validation, and file signature validation—each providing a crucial layer of defense. Today, we're implementing the final and most sophisticated protection: malware scanning using Windows Antimalware Scan Interface (AMSI).| The art of simplicity
In our previous posts, we covered content type validation and file size validation as the first two layers of defense in our file upload security pipeline. Today, we're diving into what I consider the most critical validation step: file signature validation, also known as "magic number" validation. This is where we stop trusting what files claim to be and start verifying what they actually are.| The art of simplicity
In the first post of this series, we explored how content type validation serves as the first line of defense against malicious file uploads. Today, we're tackling another critical security concern: file size validation and why it's essential for protecting your application from resource exhaustion attacks.| The art of simplicity
In this post I show how to run .NET in your browser without using Blazor, and instead rely on lower-level abstractions provided by [JSImport] and [JSExport]| Andrew Lock | .NET Escapades
After upgrading the .NET Aspire NuGet packages to the latest version on one of my projects, I started to get the following compiler error: ...| bartwullems.blogspot.com
Let's continue our joruney in discovering Scalar . Today I want to talk about how we can integrate security. Most API's that we build today ...| bartwullems.blogspot.com
In this post I continue my investigation of using Scalar as an alternative to Swashbuckle that I was using before to expose my OpenAPI metad...| bartwullems.blogspot.com
With the release of .NET 9 , Microsoft has removed Swashbuckle from the default Web API templates. If you have never heard about Swashbuckl...| bartwullems.blogspot.com
I know, I know, .NET 10 is already in preview and I am still catching up on what was added to .NET 9.0. Today while upgrading an older appli...| bartwullems.blogspot.com
I don’t know what happened but somehow I succeeded to miss the latest .NET Conf Focus edition. And this time, it was all about a topic that ...| bartwullems.blogspot.com
Although the csproj file evolved and simplified a lot over time, the Visual Studio solution file (.sln) remained an ugly file format full of...| bartwullems.blogspot.com
While browsing through the list of changes in .NET 9, I noticed a remark about the SearchValues functionality. I had no idea what it does s...| bartwullems.blogspot.com
In this post, I focus on a middleware technique to add span links between request traces on ASP.NET Core during internal redirects on NET 9.| Steve Gordon - Code with Steve
In this post, I demonstrate enhancements to collections in .NET 9 and C# 13 with IAlternateEqualityComparer and AlternateLookup on a Dictionary.| Steve Gordon - Code with Steve