Skip to main content
  1. Tags/

Dotnet

Clean Architecture: Introduction to the Project Structure

Deep Dive .NET · Dec 1, 2024 · 9 min read
Most Clean Architecture articles stop at the circle diagram. The part that actually decides whether a team can live with the pattern is more mundane: which project does this class go in, which direction do the references point, and where do the interfaces live. I built the Contact Management Application as a .NET Core Web API to answer exactly those questions with running code, and this series walks through it layer by layer.
Clean Architecture: Introduction to the Project Structure

Best Practices for Creating and Using DTOs in the API

Deep Dive .NET · Dec 1, 2024 · 6 min read
Serializing domain entities straight to the client looks like a shortcut until the first schema change. Rename one property on the entity and every consumer of the API breaks with it, and you find out from their bug reports. DTOs are the cheap insurance against that: the entity can change shape freely because the contract the client sees is a separate class you control. This post covers the DTO conventions I use in the Contact Management Application and why each one exists.
Best Practices for Creating and Using DTOs in the API