The AsSplitQuery() method in Entity Framework is useful as it allows us to avoid cartesian explosion which can cause performance … Continue reading How to enable split queries globally in Entity Framework
Improved ASP.Net debugging in Visual Studio in .NET 8
.NET 8 Preview 5 was recently released and it includes improvements to ASP.NET debugging in Visual Studio. It looks like … Continue reading Improved ASP.Net debugging in Visual Studio in .NET 8
.NET 8 FrozenDictionary benchmarks
For those that don’t know Microsoft have introduced new FrozenDictionary and FrozenSet collections in .NET 8 (from Preview 1). These collections … Continue reading .NET 8 FrozenDictionary benchmarks
Creating pull requests directly in Visual Studio now supported
From Visual Studio 2022 17.7 Preview 2+ it’s now possible to CREATE PULL REQUESTS directly from within the IDE ❤ … Continue reading Creating pull requests directly in Visual Studio now supported
Consider C# 8 switch expressions to improve readability of existing switch statements
I generally don’t like too much ‘sugar’ being added to C# but Switch Expressions from C# 8 really can improve readability … Continue reading Consider C# 8 switch expressions to improve readability of existing switch statements
SOLID principles are not laws
I cringe every time I hear a dev say something is a ‘violation’ of one of the SOLID principles as … Continue reading SOLID principles are not laws
Use local functions in C# to encapsulate logic to a single calling method
💡 – Did you know we can use local functions in C# to scope logic only to their containing methods? … Continue reading Use local functions in C# to encapsulate logic to a single calling method
Use LINQ Intersect method to find common items in two collections in .NET
C# Tip 💡 ->Did you know LINQ Intersect can be used to find common items between two collections in .NET? … Continue reading Use LINQ Intersect method to find common items in two collections in .NET
Debug localhost APIs via remote URLs with Visual Studio Dev Tunnels
Have you used Dev Tunnels in Visual Studio yet? Devs tunnels allow us to expose (and debug) our localhost APIs … Continue reading Debug localhost APIs via remote URLs with Visual Studio Dev Tunnels
New Guard Clauses coming in .NET 8
New Guard Clauses coming in .NET 8 👇🏻 … .NET 6 and .NET 7 introduced a couple of Guard Clauses … Continue reading New Guard Clauses coming in .NET 8
Get method caller info in C# using info attributes
C# Tip 💡 – Did you know we can get info about the caller of a method using C# (5+) … Continue reading Get method caller info in C# using info attributes
Poll Results : Do you enable Nullable Reference Types in your C# 8+ .NET apps?
Nullable Reference Types are supported since C# 8 in .NET and allow us to minimize the likelihood that our code … Continue reading Poll Results : Do you enable Nullable Reference Types in your C# 8+ .NET apps?
NuGet website now allows filtering of packages by .NET target framework
FYI … the NuGet website now allows you to filter by .NET target frameworks. Useful? What do you think? You … Continue reading NuGet website now allows filtering of packages by .NET target framework
Treat Nullable references type warnings in C# 8+ as errors
To treat Nullable reference types (C# 8) warnings as errors to ensure they aren’t just ignored add line 7 below … Continue reading Treat Nullable references type warnings in C# 8+ as errors
What’s new in Entity Framework 8 Preview 1?
There’s lots of good stuff coming in Entity Framework 8 Preview 1 which should drop within the next week or … Continue reading What’s new in Entity Framework 8 Preview 1?
How to set C# 10+ file scoped namespaces as default in Visual Studio
If you’re using Visual Studio 2022 & want to use File-scoped namespaces (C# 10+) by default when you create a … Continue reading How to set C# 10+ file scoped namespaces as default in Visual Studio
Resume driven development is a big problem in the software development sector
Unfortunately I see this ‘Architecture by CV‘ or ‘Resume driven development‘ as Cory has called it kind of thing all … Continue reading Resume driven development is a big problem in the software development sector
Redesigned Azure App service scale up plan screen
Has anyone seen the new Azure APP SERVICE scale up plan screen? It’s a pretty big UX improvement I think … Continue reading Redesigned Azure App service scale up plan screen
Poll Results : Do you use Microsoft-hosted agents or self-hosted agents with Azure DevOps
In work we are considering switching to self-hosted agents for our build pipelines in Azure DevOps as the Microsoft hosted … Continue reading Poll Results : Do you use Microsoft-hosted agents or self-hosted agents with Azure DevOps
.NET Framework 4.8 v .NET 7 simple ADO.NET select performance benchmarks
I love it when an upgrade to the underlying .NET framework results in faster code without us actually having to … Continue reading .NET Framework 4.8 v .NET 7 simple ADO.NET select performance benchmarks
Entity Framework 7 bulk update performance benchmarks
Entity Framework 7 supports strongly typed bulk updates and deletes. This functionality is a nice addition as previously the built in way … Continue reading Entity Framework 7 bulk update performance benchmarks
ASP.NET route syntax colour highlighting coming in .NET 8
.NET 8 will have route syntax colour highlighting for all routes including those in minimal APIs, MVC, Web APIs, Razor … Continue reading ASP.NET route syntax colour highlighting coming in .NET 8
Poll Results : What do devs use for DB CRUD in their .NET apps?
I asked .NET devs what they used for DB CRUD in most of their apps on my LinkedIn and Twitter … Continue reading Poll Results : What do devs use for DB CRUD in their .NET apps?
Build acceleration available from Visual Studio 2022 17.5
Accelerated builds will be available in Visual Studio 2022 17.5 GA and now in preview 3+ which was released recently. … Continue reading Build acceleration available from Visual Studio 2022 17.5
What database is used most with Entity Framework?
Entity Framework can access many different databases through plug-in libraries called database providers. Judging by the amount of downloads listed … Continue reading What database is used most with Entity Framework?