Clean Architecture
5 sectionsClean Architecture
TL;DR
"The center of your application is not the database. It is not one or more of the frameworks you may be using. The center of your application is the use cases of your application." -- Robert C. Martin
Read →How it works
This guide covers Clean Architecture in depth for interview preparation, with practical C# and ASP.NET Core examples throughout.
Read →Common pitfalls
Mistake: Entities are just property bags with no behavior. All logic lives in services.
Read →Quick recall Q&A
Q: What is the Dependency Rule in Clean Architecture? A: The Dependency Rule states that source code dependencies must point only inward. Outer layers (frameworks, UI, database) can depend on inner layers (use cases, entities), but never th…
Read →Additional notes
Entities encapsulate enterprise-wide business rules. They are the least likely to change when something external changes. They have no dependency on frameworks, databases, or UI concerns.
Read →