Home Archive C# performance, security, and EF Core tuning – .NET News Daily Issue #279 (Sep 8, 2025)

Editor's note

I kept this lineup intentionally mixed, from query semantics and performance tuning to security and distributed systems. The EF Core compiled queries piece and the OWASP Top 10 walkthrough stood out because they’re immediately useful in real apps.

C# performance, security, and EF Core tuning

Welcome to Monday, where we rev up like a classic Mustang hitting the open road, fueled by a fresh tank of .NET insights. Just as seasoned developers know the thrill of discovering a new shortcut or feature, today's lineup promises to keep your engines running smoothly with innovative articles and updates. So buckle up, and let's accelerate your coding week with precision and energy.

Today's Articles

IEnumerable vs IQueryable in C#: The Key Differences

https://medium.com/@sudhisudhi0834/ienumerable-vs-iqueryable-in-c-the-key-differences-a0642f3b63ac

If you’ve been coding in C# for a while, you’ve probably bumped into IEnumerable and IQueryable.

Article preview

The Hidden Performance Traps in C# You’re Probably Ignoring

https://medium.com/@orbens/the-hidden-performance-traps-in-c-youre-probably-ignoring-8d7c24f5519a

C# and the .NET runtime provide a modern, safe, and powerful development platform. However, performance pitfalls are everywhere — even in…

Article preview

How I Built a Private ChatGPT That Knows Everything About My Company

https://ai.plainenglish.io/how-i-built-a-private-chatgpt-that-knows-everything-about-my-company-d73c80cab2c5

We will be creating Local Chat GPT for organization which will answer smartly based on internal data of organization Continue reading on Artificial Intelligence in Plain English »

Article preview

From JavaScript to C#: A Developer’s Guide to Transitioning from JavaScript to C# and .NET

https://javascript.plainenglish.io/from-javascript-to-c-a-developers-guide-to-transitioning-from-javascript-to-c-and-net-788b18159e00

As a JavaScript developer, you might be used to dynamic typing, flexible syntax, and event-driven programming. However, what happens when… Continue reading on JavaScript in Plain English »

Article preview

Why You Should Care About C#’s ‘Nullable Reference Types’

https://medium.com/coinmonks/why-you-should-care-about-c-s-nullable-reference-types-5c8d13ab16ef

and How They Help Prevent Null-Related Errors Continue reading on Coinmonks »

Article preview

Secure File Access in .NET Core: Avoiding Leaks and Protecting Sensitive Data

https://medium.com/c-sharp-programming/secure-file-access-in-net-core-avoiding-leaks-and-protecting-sensitive-data-2ef03330a19c

Secure your .NET Core apps by mastering file access controls, secrets management, and leak prevention. Continue reading on .Net Programming »

Article preview

The Practical .NET Guide to AI & LLM: Introduction

https://medium.com/@roxeems/the-practical-net-guide-to-ai-llm-introduction-2225b82684c6

Model-agnostic guide to integrating LLMs in .NET — patterns, DI, provider abstraction, and security best practices.

Article preview

Understanding OWASP Top 10 with Real-World .NET Examples

https://www.c-sharpcorner.com/article/understanding-owasp-top-10-with-real-world-net-examples/

Secure your .NET applications by understanding and mitigating the OWASP Top 10 vulnerabilities! This article provides practical ASP.NET Core MVC & Web API examples demonstrating common security ri...

Article preview

Dependency Injection (DI) in .NET Core

https://medium.com/easydotnet/dependency-injection-di-in-net-core-ac1323ef4e41

For example : Continue reading on easydotnet »

Article preview

Partial View vs ViewComponent in ASP.NET MVC/Core – A Complete Guide

https://www.c-sharpcorner.com/article/partial-view-vs-viewcomponent-in-asp-net-mvccore-a-complete-guide/

Unlock the secrets of Partial Views and ViewComponents in ASP.NET MVC/Core! This guide dives deep into their differences, exploring usage, performance, and best-use cases. Learn when to use each for o...

Article preview

Top 5 Logging Frameworks for .NET Developers

https://malshikay.medium.com/top-5-logging-frameworks-for-net-developers-20c4b4d9b73e

Best logging tools for .NET developers

Article preview

Why ValueTask Can Save You from Async Overhead

https://mariemoalla.medium.com/why-valuetask-can-save-you-from-async-overhead-e820b70f9d0e

Asynchronous programming in C# is built on top of the Task and async/await model. For most scenarios, using Task is perfectly fine. But if…

Article preview

Address Resolution Protocol (ARP) in Networking: How It Works

https://www.c-sharpcorner.com/article/address-resolution-protocol-arp-in-networking-how-it-works/

Unlock the secrets of ARP (Address Resolution Protocol)! This guide explains how ARP translates IP addresses to MAC addresses, enabling seamless communication on local networks. Learn about ARP reques...

Article preview

Best Practices for Configuration and Secrets Management in .NET

https://medium.com/@kittikawin_ball/best-practices-for-configuration-and-secrets-management-in-net-719da96ba4a9

How to Securely Store and Access App Settings in ASP.NET Core?

Article preview

Bridging the Gap: A Professional Solution for Hosting a Web Server in .NET MAUI

https://medium.com/@lucafabbri84/bridging-the-gap-a-professional-solution-for-hosting-a-web-server-in-net-maui-e38cda953662

For years, a critical gap has existed within Microsoft’s cross-platform strategy. While frameworks like Flutter thrive with rich…

Article preview

The $2,000 Line of C# I Shouldn’t Have Written

https://towardsdev.com/the-2-000-line-of-c-i-shouldnt-have-written-35ad4ef0b8e4

Why This Blog Matters Continue reading on Towards Dev »

Article preview

How To Optimize EF Core Query Performance With Compiled Queries

https://medium.com/@michaelmaurice410/how-to-optimize-ef-core-query-performance-with-compiled-queries-a50537f3695e

Entity Framework Core’s compiled queries are one of the most underutilized performance optimization features available to .NET developers…

Article preview

The case of the crash on a null pointer even though we checked it for null

https://devblogs.microsoft.com/oldnewthing/20250905-00/?p=111560

A colleague was investigating a crash. The stack at the point of the crash looks like this: contoso!winrt::impl::consume_Windows_Foundation_Collections_IVectorView< winrt::Windows::Foundation::Coll...

Article preview

Introduction To Building Distributed Applications with Microsoft Orleans

https://learn-code-learn.medium.com/introduction-to-building-distributed-applications-with-microsoft-orleans-d57d2e5044f7

Microsoft Orleans (also known as Orleans .NET) is a cross-platform framework that helps developers build distributed, scalable, and…

Article preview

One Trick To Improve EF Core Performance Using Query Splitting

https://medium.com/@michaelmaurice410/one-trick-to-improve-ef-core-performance-using-query-splitting-17133e04a7a5

If you want the full source code, download it from this link: https://www.elitesolutions.shop/

Article preview

Data Seeding in ASP.NET Core the Right Way

https://medium.com/@samsondavidoff/data-seeding-in-asp-net-core-the-right-way-4c7c1f4b1773

Data seeding is the secret sauce that turns empty databases into playgrounds for testing and development.

Article preview

What is the difference between linear and non-linear data structures?

https://www.c-sharpcorner.com/article/what-is-the-difference-between-linear-and-non-linear-data-structures/

Unlock the power of Data Structures and Algorithms (DSA) by understanding the core difference between linear and non-linear data structures. This guide breaks down the sequential nature of arrays, lin...

Article preview

Using and authoring .NET tools

https://andrewlock.net/using-and-authoring-dotnet-tools/

In this post I describe some of the complexities around authoring .NET tools, specifically around supporting multiple .NET runtimes and testing in CI

Article preview

Jasen's take on today's picks

IEnumerable vs IQueryable in C#: The Key Differences

A clear comparison of IEnumerable and IQueryable, useful if you’ve ever wondered where deferred execution becomes a database query.

The Hidden Performance Traps in C# You’re Probably Ignoring

A solid reminder that everyday C# code can hide costly allocations, boxing, and unnecessary work.

How I Built a Private ChatGPT That Knows Everything About My Company

Building a private company chat assistant is getting more practical; this one focuses on internal data and access control.

From JavaScript to C#: A Developer’s Guide to Transitioning from JavaScript to C# and .NET

A friendly bridge for JavaScript developers moving into C# and .NET without losing the mental model they already know.

Why You Should Care About C#’s ‘Nullable Reference Types’

Nullable reference types still pay for themselves by catching bugs before they become production null crashes.

Secure File Access in .NET Core: Avoiding Leaks and Protecting Sensitive Data

Practical file-access guidance matters because leaks usually come from boring mistakes, not exotic exploits.

The Practical .NET Guide to AI & LLM: Introduction

This looks like a useful architecture primer for LLM integration, especially the provider abstraction and security framing.

Understanding OWASP Top 10 with Real-World .NET Examples

OWASP examples in ASP.NET Core are the sort of reference teams can use during reviews and threat modeling.

Dependency Injection (DI) in .NET Core

DI remains foundational in .NET; a refresher never hurts, especially for newer developers.

Partial View vs ViewComponent in ASP.NET MVC/Core – A Complete Guide

A side-by-side look at partial views and ViewComponents helps when you’re deciding between simplicity and reusable rendering.

Top 5 Logging Frameworks for .NET Developers

Logging choices matter most when incidents happen, so a framework comparison is always worth a skim.

Why ValueTask Can Save You from Async Overhead

ValueTask is a niche tool, but it can shave overhead in hot paths when used carefully.

Address Resolution Protocol (ARP) in Networking: How It Works

ARP isn’t a .NET topic, but it’s a good networking refresher for anyone debugging service-to-service connectivity.

Best Practices for Configuration and Secrets Management in .NET

Configuration and secrets handling are still common failure points, and this piece keeps the advice practical.

Bridging the Gap: A Professional Solution for Hosting a Web Server in .NET MAUI

MAUI hosting a web server is an interesting workaround for a real platform gap and cross-platform app scenarios.

The $2,000 Line of C# I Shouldn’t Have Written

A cautionary tale: large code can become expensive code when design and ownership drift apart.

How To Optimize EF Core Query Performance With Compiled Queries

Compiled queries are one of those EF Core features that can deliver real wins without changing your domain model.

The case of the crash on a null pointer even though we checked it for null

Raymond Chen’s crash analysis is a good reminder that null checks don’t always mean what they seem in native interop.

Introduction To Building Distributed Applications with Microsoft Orleans

Orleans remains compelling for distributed systems work, especially when you want actors without reinventing the plumbing.

One Trick To Improve EF Core Performance Using Query Splitting

Query splitting is another EF Core performance lever worth knowing before you start hand-optimizing SQL.

Data Seeding in ASP.NET Core the Right Way

Data seeding advice is most useful when it helps teams keep dev and test databases predictable.

What is the difference between linear and non-linear data structures?

A quick DSA refresher that’s useful for interviews, reviews, and choosing the right data shape.

Using and authoring .NET tools

Dotnet tool authoring can be trickier than it looks once you add runtime compatibility and CI testing into the mix.

Related issues

📬 Get daily .NET content delivered to your inbox