Library topic

Data & EF Core

EF Core, SQL, concurrency and working with data in .NET. 43 links, all featured in The .NET Insider.

Extract a document and keep track of where each result came from

Luis Quintanilla · .NET BlogIssue 37

The DocumentExtractionClient preview gives .NET applications a common way to read text, tables and images while keeping references to their source. Running the same book through an in-process PDF parser and a vision provider shows what each can recover: a scanned copy has no text layer for the parser to read. A useful comparison before committing documents to an ingestion pipeline.

50 practical improvements for projects staying on .NET 10

Mukesh Murugan · codewithmukesh.comIssue 37

Works well as a code-review companion: follow a list endpoint from HTTP to SQL and check that it passes the cancellation token, selects only the columns in the response and paginates the result. Also covers startup validation for configuration, consistent API errors with ProblemDetails and named EF Core query filters, most small enough for the next pull request.

Choose an approach for reading Excel files in C#

Khalid Abuhakmeh · khalidabuhakmeh.comIssue 35

Compares ExcelDataReader, ExcelMapper, ClosedXML and lower-level options, using the same data model across the examples. The choice depends on whether you need to stream rows, map them into objects, or read and edit a workbook. He also shows what parsing an .xlsx file without a library involves. A useful reference before adding the next import endpoint or background job.

What's New in EF Core 11

The official feature list, with code and generated SQL for each change. Highlights: unnecessary joins and ORDER BY columns removed from to-one includes, translation of the new LINQ FullJoin, MaxBy and MinBy, complex types and JSON columns on TPT and TPC inheritance, and migration tooling such as dotnet ef database update --add. SQL Server vector search is marked experimental. The benchmark figures quoted are Microsoft's own scenarios, so measure your queries.

Breaking changes in EF Core 11 (EF11)

Read this before upgrading. For SQL Server: the default compatibility level moves to 160 (SQL Server 2022), so older servers need UseCompatibilityLevel set explicitly, and Microsoft.Data.SqlClient 7.0 moves Entra ID authentication into a separate package. Migrate() now throws when no migrations are found, and split queries throw on concurrent modifications instead of returning empty collections. The Azure Cosmos DB provider has the most changes, including one rated high impact.

Outbox processing in Postgres: workers or the WAL?

Milan Jovanović · milanjovanovic.techIssue 34

Compares concurrent polling workers, LISTEN/NOTIFY and reading the Postgres write-ahead log through logical replication, publishing outbox messages to RabbitMQ and measuring latency, throughput and crash recovery. The WAL reader lowers latency in his tests but adds replication-slot management and more duplicate deliveries after a hard kill, so both approaches need idempotent consumers. The WAL implementation is a prototype with failover untested.

Inside DuckDB.NET's faster date appends

Giorgi Dalakishvili · giorgi.devIssue 34

Explains the changes behind DuckDB.NET 1.5.6.1's faster handling of dates, nullable values, enums and strings, with both compared versions on the same DuckDB engine. In one million-row timestamp benchmark, allocations fall from 2.8 GB to 93 KB. The sections on boxing, generic virtual calls and date conversion are worth reading even if DuckDB is not in your stack; the figures belong to the measured workloads.

Links go to the original articles. Short descriptions are dotnetdevs.io commentary, not the authors' words.