Filtered includes is an awesome new feature in Entity Framework Core 5.0 which was released in November 2020. Without lazy … Continue reading Filtered includes now supported in Entity Framework Core 5.0
Category: .NET Core Blog
Easier immutability with Init only properties in C# 9
C# 9 shipped with .NET 5 in November. One change included is init only properties which allow us to have … Continue reading Easier immutability with Init only properties in C# 9
Running framework-dependent .NET 5.0 apps in Azure App Service before RTM
.NET 5 Release Candidate 1 (of 2) has just dropped. Prior to its full release and availability as a built … Continue reading Running framework-dependent .NET 5.0 apps in Azure App Service before RTM
Reading Entity Framework Core connection string from appSettings.json
When you run Scoffold-DbCotext with a connection string EF Core will scaffold your DB but will put the hardcoded connection string … Continue reading Reading Entity Framework Core connection string from appSettings.json
Setting Brotli compression level when using response compression in ASP.NET Core
Brotli compression can compress HTML, CSS and JS files more versus Gzip compression. If you can’t enable Brotli compression on … Continue reading Setting Brotli compression level when using response compression in ASP.NET Core
Creating a DTO class from a JSON string in Visual Studio
If you’ve got back some JSON from a REST API you’ll likely be wanting to use Newtonsoft or System.Text.Json (.NET Core … Continue reading Creating a DTO class from a JSON string in Visual Studio
Extracting Google PageSpeed performance score in .NET
Most webmasters are aware that Google uses performance as a ranking signal for both desktop and mobile searches so its important … Continue reading Extracting Google PageSpeed performance score in .NET
Parsing a nested value from a JSON string in .NET Core 3 without needing a DTO
.NET doesn’t use Newtonsoft by default anymore (since .NET Core 3.0). A lot of the examples online show how to use … Continue reading Parsing a nested value from a JSON string in .NET Core 3 without needing a DTO