Home Archive EF Core, C#, and Azure security – .NET News Daily Issue #186 (Apr 30, 2025)

Editor's note

I pulled a pretty mixed lineup this time, from EF Core tuning and IAsyncEnumerable to Azure zero trust and SignalR. The C# 14 preview piece and the OAuth client-assertions article stand out because they’re both immediately useful for working teams.

EF Core, C#, and Azure security

Welcome to a Wednesday where the power of .NET is as undeniable as the effect of caffeine on a seasoned developer—sharp, quick, and pushing the limits of what's possible. Today, we're serving up a buffet of insights with quirks that make even the quirkiest of APIs look tame. As you scroll through, think of it as a mid-week tune-up for your .NET engine: refined, reliable, and ready to rev up your codebase with fresh perspectives and tested wisdom.

Today's Articles

Beyond Basics: Advanced Techniques for EF Core Performance

https://medium.com/@S_Jathurshan/46e9412a16bc

Performance and Tracking Continue reading on Write A Catalyst »

Article preview

The Hidden Costs of Null Checks in Generic C# Code

https://www.c-sharpcorner.com/article/the-hidden-costs-of-null-checks-in-generic-c-sharp-code/

Learn how to properly perform null checks in generic C# code. Avoid hidden performance issues like boxing by using EqualityComparer<T>.Default and modern is null techniques for efficient, clean cod...

Article preview

Variables in C#: What They Are and How to Actually Use Them

https://medium.com/@fulton_shaun/variables-in-c-what-they-are-and-how-to-actually-use-them-32a3a11f1566

Learn how to store data, name your values, and avoid beginner mistakes in your first C# programs.

Article preview

Replacing a Generic Repository with EF DbContext

https://medium.com/@KeivanDamirchi/replacing-a-generic-repository-with-ef-dbcontext-151ef5083d76

Generic repositories often hide EF’s strengths. In many apps, DbContext is the best abstraction.

Article preview

How to Implement Zero Trust Architecture on Azure Using C#

https://www.c-sharpcorner.com/article/how-to-implement-zero-trust-architecture-on-azure-using-c-sharp/

Learn how to implement Zero Trust Architecture on Azure using C#. Secure your apps with Azure AD, Key Vault, RBAC, Managed Identity, and Conditional Access for robust, identity-driven protection.

Article preview

Consuming from Kafka without Consumer Groups in C#

https://medium.com/norsk-helsenett/consuming-from-kafka-without-consumer-groups-in-c-5a17c67d7b35

Some times you want to consume from Kafka, but without using a consumer group. For instance if you have many instances of an application… Continue reading on Norsk helsenett »

Article preview

Real-Time Apps in .NET with SignalR

https://medium.com/@nelsoncagar/real-time-apps-in-net-with-signalr-a107bb770fde

Introduction

Article preview

Consistent API Response Modeling: Why It Matters

https://medium.com/@logan.young87/consistent-api-response-modeling-why-it-matters-3a637e85e9f7

There are a few traits that make a developer stand out: clean code, consistent conventions, meaningful error handling… you know the list.

Article preview

A simple way to create sample data #vscode #ai #copilot

https://www.youtube.com/watch?v=aETKL7t9jyU

Article preview

Secure your ASP.NET application

https://medium.com/c-sharp-programming/secure-your-asp-net-application-ac995c033db2

HTTP headers and other mechanisms to control security aspects of your website. Continue reading on .Net Programming »

Article preview

The C# Developer’s Edge: Crush Data Streaming with IAsyncEnumerable!

https://medium.com/@nagarajvela/the-c-developers-edge-crush-data-streaming-with-iasyncenumerable-7fbe3c37c246

Unlock IAsyncEnumerable for real-time apps. Continue reading on CodeElevation »

Article preview

Virtual vs Sealed vs Static in C#: When to Use Each and Performance Trade-Offs

https://codenp.com/virtual-vs-sealed-vs-static-in-c-when-to-use-each-and-performance-trade-offs-1c910d4d9849

We have been using keywords like virtual, sealed, and static in modern C# development almost daily. Most of us understand the basic… Continue reading on codenp »

Article preview

.NET AI Community Stand Up - .NET Tokenizers & Real-World MCP in Action

https://www.youtube.com/watch?v=R09jy-XhRIk

Article preview

Performance comparison of JSON Schema implementations for .NET

https://medium.com/@lateapexearlyspeed/performance-comparison-of-json-schema-implementations-for-net-ead3d092a473

This article introduces performance comparison (cpu & memory) of several JSON Schema validator implementations for .NET, collected from…

Article preview

Implement client assertions for OAuth client credential flows in ASP.NET Core

https://damienbod.com/2025/04/21/implement-client-assertions-for-oauth-client-credential-flows-in-asp-net-core/

This blog implements client assertions using an OAuth client credential flow in ASP.NET Core. Client assertions provide a secure way for client authentication without sharing a secret, enhancing the s...

Article preview

Going beyond singleton, scoped, and transient lifetimes—tenant, pooled, and drifter

https://andrewlock.net/going-beyond-singleton-scoped-and-transient-lifetimes/

In this post I investigate some 'experimental' dependency injection scopes that provide additional features over Singleton, Scoped, and Transient

Article preview

What is Vibe Coding?

https://www.c-sharpcorner.com/article/what-is-vibe-coding/

Vibe coding is a new approach to software development where programmers use AI tools, like large language models, to create code by describing what they want in natural language. This method speeds up...

Article preview

Write Once, Query Anywhere: Harnessing the Power of LINQ Across Multiple Databases

https://satheeshkaliappan.medium.com/write-once-query-anywhere-harnessing-the-power-of-linq-across-multiple-databases-a7c656de783b

Summary

Article preview

Avoid Exception Before Writing Exception Handler

https://learn-code-learn.medium.com/avoid-exception-before-writing-exception-handler-27a9438580f7

To handle or catch run-time errors in application we use Exception handlers. However, throwing exceptions is costly in terms of… Continue reading on Nerd For Tech »

Article preview

10 Game-Changing Features in C# 14 Preview (and How to Try Them Today)

https://medium.com/@metoz.florian/10-game-changing-features-in-c-14-preview-and-how-to-try-them-today-a3cb27f77bea

C# 14, arriving with .NET 10, is packed with features that developers have been impatiently waiting for. With the official release set for…

Article preview

Setting the App Icon and SplashScreen in MAUI [GamesCatalog] 17

https://www.c-sharpcorner.com/article/setting-the-app-icon-and-splashscreen-in-maui-gamescatalog-17/

Configured custom app icon and splash screen in .NET MAUI using SVG files from FontAwesome. Integrated local game rating storage via the IGDB API. Prepping for next phase: building a Web API backend.

Article preview

How I Used Domain-Driven Design to Fix My Messy Clean Architecture — And Why You Probably Should…

https://medium.com/@michaelmaurice410/how-i-used-domain-driven-design-to-fix-my-messy-clean-architecture-and-why-you-probably-should-ec9f6074c3ff

What’s the story? Imagine you’re building an app that manages events and invitations. Things start simple — just a few POCOs, maybe a…

Article preview

Unlocking High-Performance Streams in .NET with System.IO.Pipelines

https://medium.com/@metoz.florian/unlocking-high-performance-streams-in-net-with-system-io-pipelines-aae104749237

“Streams are easy — until you need them to be fast.” Enter: System.IO.Pipelines.

Article preview

Jasen's take on today's picks

Beyond Basics: Advanced Techniques for EF Core Performance

A practical look at squeezing more from EF Core when query shape and tracking start to matter.

The Hidden Costs of Null Checks in Generic C# Code

A reminder that seemingly harmless null checks and generic patterns can add noise and cost in hot code paths.

Variables in C#: What They Are and How to Actually Use Them

A back-to-basics C# refresher that’s useful for newer devs or teams onboarding into the language.

Replacing a Generic Repository with EF DbContext

A direct comparison of replacing a generic repository with DbContext, which should spark the usual architecture debate.

How to Implement Zero Trust Architecture on Azure Using C#

A solid Azure security walkthrough focused on zero trust and building safer apps with C#.

Consuming from Kafka without Consumer Groups in C#

An interesting Kafka article for when you need fine-grained consumption without consumer groups.

Real-Time Apps in .NET with SignalR

SignalR gets the spotlight here for real-time app scenarios that need responsive UX.

Consistent API Response Modeling: Why It Matters

Consistent API response shapes are one of those small discipline wins that make client code much easier to maintain.

A simple way to create sample data #vscode #ai #copilot

A quick sample-data tip with Copilot and VS Code that should save time during demos and prototyping.

Secure your ASP.NET application

ASP.NET security fundamentals are always worth revisiting, especially with auth and input boundaries in mind.

The C# Developer’s Edge: Crush Data Streaming with IAsyncEnumerable!

IAsyncEnumerable is a great fit for streaming data without overcommitting memory or blocking the pipeline.

Virtual vs Sealed vs Static in C#: When to Use Each and Performance Trade-Offs

Virtual, sealed, and static trade-offs are explained with the performance angle front and center.

.NET AI Community Stand Up - .NET Tokenizers & Real-World MCP in Action

The .NET AI community update is notable for tokenizers and practical MCP examples rather than vague AI chatter.

Performance comparison of JSON Schema implementations for .NET

JSON Schema implementation benchmarks are valuable if validation cost is showing up in your app or tests.

Implement client assertions for OAuth client credential flows in ASP.NET Core

Client assertions for OAuth client credentials are a strong option for more secure service-to-service authentication.

Going beyond singleton, scoped, and transient lifetimes—tenant, pooled, and drifter

This lifetime article goes beyond the usual trio and shows how dependency injection gets more nuanced at scale.

What is Vibe Coding?

Vibe coding is the kind of buzzword piece that’s worth reading critically and comparing against disciplined engineering.

Write Once, Query Anywhere: Harnessing the Power of LINQ Across Multiple Databases

LINQ across multiple databases is an appealing promise, but the real value is understanding where abstraction holds.

Avoid Exception Before Writing Exception Handler

Preventing exceptions before handling them is still one of the cleanest ways to improve reliability and readability.

10 Game-Changing Features in C# 14 Preview (and How to Try Them Today)

C# 14 preview highlights give a good sense of what may change day-to-day coding soon.

Setting the App Icon and SplashScreen in MAUI [GamesCatalog] 17

MAUI app icon and splash screen setup is a small but necessary polish task for mobile apps.

How I Used Domain-Driven Design to Fix My Messy Clean Architecture — And Why You Probably Should…

The DDD and clean architecture piece is useful because it focuses on fixing mess, not worshipping patterns.

Unlocking High-Performance Streams in .NET with System.IO.Pipelines

System.IO.Pipelines is the performance article in the batch, aimed squarely at high-throughput stream processing.

Related issues

📬 Get daily .NET content delivered to your inbox