Here I implement Onion Architecture in ASP.NET Core with CQRS. It was created by Computer Engineer Jeffrey Palermo for creating app which are highly maintainable and loosely coupled. This architecture somewhat resembles the layers which can be seen on cutting an onion vegetable. You can separate the layers of onion very easily and eat them in your salads. In the same way the layers of Onion Architecture are separatable as they are loosely coupled, and this gives a highly testable architecture.
Read the entire article here - https://www.hosting.work/onion-architecture-aspnet-core-cqrs/
- What is Onion Architecture
- Layers in Onion Architecture for an ASP.NET Core app
- Domain Layer in Onion Architecture
- Application Layer in Onion Architecture
- Infrastructure + Presentation Layer in Onion Architecture
- Onion Architecture vs Clean Architecture
- Onion Architecture vs N-Tier
- Let’s Implement Onion Architecture in ASP.NET Core with CQRS
- Creating Domain Layer of Onion Architecture
- Creating Application Layer of Onion Architecture
- Adding CQRS to Application Layer
- Creating Infrastructure Layer of Onion Architecture
- Creating Presentation Layer of Onion Architecture
- Testing with Swagger
Your support of every $5 will be a great reward for me to carry on my work. Thank you!