data access
Entity Framework Core Articles, Tutorials & News
Entity Framework Core articles, tutorials, and news from the DotNetNews archive.
593 articles Updated
This DotNetNews topic collects Entity Framework Core tutorials material from the daily archive. Entity Framework Core is part of the data-access layer most .NET apps rely on, whether the store is relational or document-oriented. The page is for people who already ship C# and need a faster way to find relevant posts.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for Entity Framework Core; the archive list is chronological and larger. Nothing here claims every article was production-tested by the editors.
Recurring subtopics in recent issues include EF Core tutorials, EF Core migrations, EF Core performance, and LINQ EF Core. Secondary angles such as Entity Framework Core and EF Core tutorials appear when the archive actually covered them. Related hubs such as Dapper for C# and .NET and SQL Server for C# and .NET cover adjacent problems.
Start here
Editor picks for EF Core
-
The Migration That Lied for Two Years
Medium Issue #504
Covers the Migration That Lied for Two Years.
-
Fastest Way to Bulk Insert Thousands of Rows in EF Core
codewithmukesh Issue #502
Covers fastest Way to Bulk Insert Thousands of Rows in EF Core.
-
Entity Framework Core Performance Tuning for Large Applications
C# Corner Issue #501
Optimize EF Core for large apps: Boost performance with AsNoTracking, pagination, indexing, caching, and more.
-
EF Core Migration Bundles: What They Are & Why They Matter
Medium Issue #501
Migration bundles are still underused; this is a useful operational topic.
-
The C# 14 field Keyword Looks Like Free Cleanup. It Can Still Break Your EF Core Mapping
C# Corner Issue #501
C# 14 field keyword can break EF Core backing-field mapping and reflection code.
-
Track every EF Core record change with temporal tables
Round The Code Issue #499
Temporal tables remain one of the most useful underused SQL Server features, and this walks through the EF Core side clearly.
-
Stop Over-Fetching: Master EF Core Projections for Faster, Leaner APIs
Medium Issue #498
If your APIs are slow, projections are one of the highest-value EF Core habits to build early.
-
EF Core and Azure SQL Database: A Step-by-Step Guide
Dev Tips Issue #498
Practical guide for getting EF Core working cleanly against Azure SQL, including resiliency and passwordless access.
Archive
Page 1 of 24
Newest first
-
EF 11 Drops a Redundant Join From Split Queries
Milan's .NET Weekly Issue #589
EF 11 stops joining reference navigations in the collection statements of a split query, and it drops their keys from ORDER BY.
-
Choosing Between Include and Select in EF Core for Better API Performance
C# Corner Issue #589
Learn when to use Include and Select in EF Core, how eager loading differs from projection, and how each approach affects API query performance and response payloads.
-
Building a Coupon Management System Using ASP.NET Core and Entity Framework Core
C# Corner Issue #588
Build a coupon management Web API with ASP.NET Core and Entity Framework Core, including coupon validation, redemption tracking, discount calculations, and SQL Server persistence.
-
The Hidden Risks of Sharing DbContext Across Threads in .NET
Medium Issue #587
Why sharing one Entity Framework Core DbContext across concurrent operations can cause unexpected exceptions and how to fix it
-
Stopping Database Operations When a Client Disconnects in ASP.NET Core
C# Corner Issue #587
Learn how to propagate ASP.NET Core request cancellation tokens to EF Core database operations so unnecessary queries can stop when clients disconnect.
-
Updating Thousands of Database Records in EF Core Without Loading Them Into Memory
C# Corner Issue #587
Learn how to update large numbers of records efficiently in EF Core using ExecuteUpdateAsync, direct database updates, and batching strategies.
-
Saving Long-Running .NET Workflows When an Application Restarts
C# Corner Issue #583
Build a persistent .NET workflow with EF Core and BackgroundService that saves step status, resumes unfinished work after restarts, and avoids duplicate operations.
-
Adding Human Approval Before an AI Agent Changes Production Systems
C# Corner Issue #581
Build a human approval workflow for AI agents that propose production changes using ASP.NET Core, C#, Entity Framework Core, and auditable execution controls.
-
JWT Authentication in ASP.NET Core Web API (.NET 10): Identity, Refresh Tokens and a Locked MCP Endpoint
C# Corner Issue #578
Before you let AI near your API, you need to know who is asking. In this article we take an ASP.NET Core Web API (.NET 10, EF Core and PostgreSQL) that has no login at all and lock it down with ASP.NE...
-
One Table or Three? Choosing Between TPH, TPT, and TPC in EF Core
Medium Issue #577
Your inheritance mapping decides your query shape, your constraints, and how painful your next migration will be. Here’s how to choose on…
-
EF Core and Azure SQL Database: A Step-by-Step Guide
Medium Issue #575
EF Core is the most popular way to work with a database in .NET.Continue reading on CodeX »
-
How to Add Soft Deletes in Entity Framework Core Without Losing Data
C# Corner Issue #575
Implement soft deletes in Entity Framework Core with an IsDeleted flag, global query filters, and a SaveChanges override. Learn how to hide, restore, and retain deleted records.
-
How to Save Enums and Custom Types with EF Core Value Converters
C# Corner Issue #575
Learn how to use EF Core value converters to store enums as strings and map custom C# value objects to database columns.
-
How to Use ETags in ASP.NET Core to Prevent Users from Overwriting Each Other’s Changes
C# Corner Issue #572
Learn how to use ETags, If-Match headers, EF Core rowversion columns, and HTTP 412 responses to prevent conflicting updates in ASP.NET Core APIs.
-
Code-First vs Database-First in EF Core
Medium Issue #572
Entity Framework Core (EF Core) is Microsoft’s ORM for .NET: it maps C# classes to database tables, so you work with objects instead of…
-
EF Core in Clean Architecture the Pragmatic Way
Medium Issue #572
Clean Architecture is one of the most popular architectural styles in .NET today.Continue reading on CodeX »
-
Two C# Objects, One Database Row: The Hidden Identity Map Inside EF Core
Medium Issue #571
Why Entity Framework Core refuses to track duplicate entities, what InternalEntityEntry actually does, and the design decisions hiding…
-
How to Use CancellationToken in ASP.NET Core Without Leaving Work Running
C# Corner Issue #571
Learn how to use CancellationToken in ASP.NET Core to stop unnecessary work when requests are aborted, including cancellation in EF Core queries and HttpClient calls.
-
How to Keep Customer Data Separate in a Multi-Tenant ASP.NET Core App
C# Corner Issue #571
Learn how to isolate tenant data in an ASP.NET Core shared-database application using EF Core query filters, tenant claims, safe writes, and authorization.
-
Understanding CancellationToken in C# and ASP.NET Core Web API
C# Corner Issue #570
Learn how to use CancellationToken in ASP.NET Core Web API to stop abandoned requests, cancel EF Core queries, and handle request cancellation efficiently.
-
How to Use the Transactional Outbox Pattern in .NET to Avoid Lost Messages
C# Corner Issue #570
Learn how to implement the Transactional Outbox Pattern in ASP.NET Core and Entity Framework Core to reliably save business data and publish events without losing messages.
-
How to Use CancellationToken in ASP.NET Core Without Leaving Work Running
C# Corner Issue #569
Learn how to propagate CancellationToken through ASP.NET Core APIs, Entity Framework Core queries, and HTTP operations to stop work when requests are aborted.
-
How to Stream Large JSON Responses in ASP.NET Core Without Buffering
C# Corner - Nidhi Sharma Issue #568
Learn how to stream large JSON responses in ASP.NET Core with IAsyncEnumerable, System.Text.Json, and cancellation-aware Entity Framework Core queries.
-
From InMemory to SQLite: Making My First C# API Data Persistent
Medium Issue #568
Today, I spent a few hours working on my PizzaStore API, and one of my main goals was to move from an InMemory database to SQLite.
-
Logging EF Core SQL Queries During Development
C# Corner - Riya Patel Issue #568
Learn how to log and inspect Entity Framework Core SQL queries in ASP.NET Core using logging categories and LogTo, while avoiding exposure of sensitive data.