Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Command Pattern: Turning Requests into Objects, Undo/Redo and Queuing
Command packages a request as an object, so an invoker can run it, undo it, queue it and log it without knowing what it does. An undo/redo stack and a MacroCommand in Bookstore's catalog editor, System.Windows.Input.ICommand in the BCL, serializing commands with System.Text.Json and running them in the background through a Channel, how a GoF command differs from a CQRS command, MediatR 13's license and a library-free dispatcher.
EF Core and Architecture: Repositories, the Read Side of CQRS and Moving to Dapper
With real SQL we see how a generic repository silently moves the WHERE into memory, and discuss DbContext already being a unit of work. We finish the core block with an aggregate-specific repository, projections on the CQRS read side and Dapper sharing the same connection and transaction.