Recent posts tagged ef

Level UI • 20 hours • in Articles • 9 min read
Somewhere in the last year, "do we need an MCP server?" joined the list of questions that arrive in a brief before anyone has said what the thing is for. It is usually framed as MCP vs API, as though the Model Context Protocol were a newer kind of AP...
post-cover-33074
  • ai
  • api
  • webdev
  • security
Spyros • Jun 29 • in Articles • 4 min read
When developers first start using Entity Framework Core, it's easy to write queries that work—but not all queries perform well. The good news? A few simple practices can make your queries much faster, use less memory, and generate better SQL. We'll...
  • c#
  • ef
  • core
Spyros • Jun 5 • in Articles • 2 min read
Entity Framework Core EF Core is often introduced as an ORM that simplifies data access, but its real value in enterprise applications comes from features that improve reliability, scalability, and maintainability. As applications grow and operate ...
  • opensource
  • c#
  • ef
  • core
Spyros • Feb 16 • in Articles • 1 min read
When IDbContextFactory enters the chat, and what it actually fixes Most EF Core examples use a scoped DbContext. In a normal Web API request, that’s fine, the request ends, the context is disposed. Then you build Blazor Server. A Blazor Server ci...
  • ef
  • core
  • blazor
  • c#
Spyros • Oct 13, 2025 • in Articles • 5 min read
Introduction Distributed systems are powerful — but they come with one big challenge: reliability. What happens if your application updates a record in the database and then tries to publish a message to a message broker… but crashes in between? ...
  • designpatterns
  • core
  • ef
  • interceptors
Spyros • Aug 5, 2025 • in Articles • 2 min read
1. Introduction When you’re using EF Core in production, query compilation can quietly become a performance bottleneck — especially if the same query is executed thousands of times. Normally, EF Core parses your LINQ, generates SQL, and prepares ...
  • ef
  • core
  • c#
  • designpatterns
Spyros • Jul 25, 2025 • in Articles • 3 min read
When you’re working with bulk data operations, upserts, or syncing external sources, MERGE is one of the most powerful tools SQL Server offers. But what happens when you need to use it alongside Entity Framework Core? In this article, we’ll cover: ...
  • ef
  • core
  • sql
  • c#
Spyros • Mar 31, 2025 • in Articles • 3 min read
Many experienced developers are familiar with database transactions but often overlook the key differences between optimistic and pessimistic concurrency control in Entity Framework Core EF Core. Understanding both approaches and how EF Core handle...
  • microservices
  • ef
  • c#
  • asp
  • database
Spyros • Mar 24, 2025 • in Articles • 3 min read
Entity Framework Core 7 introduced two powerful methods for bulk operations: ExecuteUpdateAsync and ExecuteDeleteAsync. These methods are designed for high-performance scenarios where you need to update or delete multiple records efficiently with...
  • ef
  • core
  • c#
  • microservices
  • asp
Spyros • Mar 20, 2025 • in Articles • 3 min read
Learn how to hook into EF Core operations using interceptors, leverage the Decorator Pattern for clean cross-cutting concerns, and see real-world examples like SQL logging and auditing. Table of Contents A Brief History of EF Core Interceptors Wha...
  • ef
  • core
  • interceptors
  • entity
  • framework
Spyros • Mar 6, 2025 • in Articles • 3 min read
When working with Entity Framework Core EF Core, there are different strategies for loading related data from the database. So, how do you load a collection or other related objects? Here are the main options: 1️⃣ Eager Loading Include Loads rela...
  • c#
  • ef
  • core
  • asp
  • microservices
Spyros • Mar 2, 2025 • in Articles • 2 min read
Entity Framework Core EF Core Global Query Filters allow you to apply filters to queries at the model level so that they automatically apply to all queries involving a specific entity. This is particularly useful for scenarios like soft deletes, mu...
  • ef
  • core
  • c#
  • asp
  • net
Spyros • Feb 26, 2025 • in Articles • 2 min read
When working with Entity Framework Core EF Core, queries that involve multiple Include statements can result in a single large query with multiple joins. This can cause performance issues due to data duplication and increased memory usage. What is A...
  • c#
  • ef
  • core
To see more, click for the full list of posts or popular tags.
chevron_left
🔥 13 posts • 👩‍💻 1 active writers

✨ Want to write in this topic?
Share your learning. Get discovered. Build your profile.
Join CoderLegion

💡 Why developers use CoderLegion
Track learning • Share posts • Get ranked publicly
Create your profile