Remigiusz ZalewskiRemigiusz Zalewski

All Posts

EF Core Bulk Operations: 2 Real-Life Scenarios You Should Know (.NET 10)

EF Core Bulk Operations: 2 Real-Life Scenarios You Should Know (.NET 10)

Two real production scenarios on a 1-million-row catalog - a tiered pricing promotion and a live CSV feed import - with numbers measured on camera: where a hand-rolled EF Core loop is fine, and where BulkUpdate, BulkMerge, and BulkSynchronize from Entity Framework Extensions turn 51 seconds into 12.

.NET Database Migrations Explained using EF Core

.NET Database Migrations Explained using EF Core

Calling Database.Migrate() on startup is the demo answer, not the production one. How to actually ship schema changes - idempotent SQL scripts, migration bundles, a least-privilege migration login, and reviewing what EF generated.

Audit Trial in ASP.NET Core Web API and EF Core

Audit Trial in ASP.NET Core Web API and EF Core

Record who changed what and when, automatically, by overriding SaveChangesAsync and walking the EF Core change tracker - with old/new values as JSON, sensitive fields stripped, and the current user pulled from the request.

EF Core Inheritance - TPH, TPT and TPC

EF Core Inheritance - TPH, TPT and TPC

EF Core can map a C# class hierarchy to the database three different ways - one shared table, a table per class with joins, or a table per concrete type. Here is how each one looks on disk and which to pick.

How to generate PDF Reports In .NET

How to generate PDF Reports In .NET

Build a real PDF report in .NET with QuestPDF - a code-first document with a header and logo, a striped data table, and page-numbered footers - served straight from a minimal API endpoint.

Page 1 of 5