Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am reading and learning on how an application project could be designed better by following the SOLID and CRAP principles. I am quite comfortable in understanding the CRAP principles. However, while researching, I came across the concept of Onion architecture and I am having difficulty wrapping my head around the 2 design concepts and the differences/similarities between the two, if any?

Will an Onion architectured project include the SOLID principle(s)? Does one approach correlate to the other?

What I have tried:

If someone can briefly explain the relation between the two concepts it would be really helpful. Thank you.
Posted
Updated 8-May-17 2:18am

1 solution

If anything I believe Onion helps enforce the "S" (Single Responsibility), and because of the interfaces or contracts between the layers it strongly supports both the "L" (Liskov substitution) and the "I" (Interface segregation).
Like most environments, frameworks and theories the "O" (Open/closed) and "D" principles are down to the designer

You may find the following blogs useful:
The Onion Architecture. The software architecture to the rescue of the SOLID principles[^]
The Clean Architecture | 8th Light[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900