data access
Entity Framework Core Articles, Tutorials & News
Entity Framework Core articles, tutorials, and news from the DotNetNews archive.
580 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
-
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.
-
How to Use ETags in ASP.NET Core to Prevent Users from Overwriting Each Other’s Changes
C# Corner Issue #568
Learn how to use HTTP ETags, If-Match headers, and EF Core rowversion tokens in ASP.NET Core APIs to detect concurrent edits and prevent lost updates.
-
Preventing Duplicate Operations in ASP.NET Core APIs
C# Corner - Riya Patel Issue #567
Learn how to prevent duplicate ASP.NET Core API operations with idempotency keys, durable EF Core storage, request hashes, and database uniqueness constraints.
-
How to Return Large JSON Responses in ASP.NET Core Without Loading Everything into Memory
C# Corner Issue #567
Learn how to stream large JSON responses in ASP.NET Core with IAsyncEnumerable, Entity Framework Core, cancellation, and memory-conscious API design.
-
Keeping API Pagination Consistent While Records Change
C# Corner - Vivek Kumar Issue #567
Learn how record changes cause offset pagination duplicates and gaps, and implement stable cursor-based pagination in ASP.NET Core with Entity Framework Core.
-
How to Use the Transactional Outbox Pattern in .NET to Avoid Lost Messages
C# Corner Issue #567
Learn how to implement the transactional outbox pattern in .NET with Entity Framework Core to reliably save business data and publish events without lost messages.
-
EF Core Optimization Guide: A Step-By-Step Guide to Faster Queries
Medium - Anton Martyniuk Issue #567
“EF Core is slow, don’t use it.” Continue reading on CodeX »
-
EF Core Cartesian Explosion: How a Single .Include() Almost Crashed Production
Medium - Nikola Perisic Issue #567
How one EF Core .Include() multiplied our SQL rows into timeouts, and the split queries and guardrails that stop it for good.
-
EF Core Bulk Updates: When to Use ExecuteUpdate Instead of Loading Entities
C# Corner Issue #566
Learn when to use EF Core ExecuteUpdateAsync for set-based bulk updates instead of loading tracked entities, including effects on change tracking and database operations.
-
Use ETags in ASP.NET Core to Prevent Lost Updates
C# Corner - Bhavya Singh Issue #565
Learn how to use ETags, If-Match headers, and EF Core rowversion tokens in ASP.NET Core to detect stale updates and prevent lost data changes.
-
Setting Up Prometheus Alerting Rules for EF Core Performance and Traffic
C# Corner - Sardar Mudassar Ali Khan Issue #562
Configure Prometheus alerting rules for EF Core query traffic, active DbContext counts, and HTTP latency, then register and verify the rules in Prometheus.
-
Resolving HostAbortedException and Table-Sharing Warnings During EF Core Migrations
C# Corner - Sardar Mudassar Ali Khan Issue #561
-
Optimizing EF Core Performance: No-Tracking, Split Queries, and Compiled Queries
C# Corner - Sardar Mudassar Ali Khan Issue #561
Learn how to improve EF Core query performance with no-tracking queries, split queries, and compiled queries for read-heavy and high-throughput workloads.
-
Boosting ASP.NET Core Performance: A Guide to Read-Only EF Core Queries
Medium - Rakibul H. Rabbi Issue #558
When building ASP.NET Core applications, it’s common to have multiple database contexts. You might have one for your main application…