In this article, We will talk about Onion Architecture In ASP. NET Core and its advantages. We will also together build a WebApi that follows a variant of Onion Architecture so that we get to see why it is important to implement such an architecture in your upcoming projects. Here is a list of features and tech we will be using for this setup.
- Onion Architecture
- Entity Framework Core – Code First
- .NET Core 3.1 Library / .NET Standard 2.1 Library / ASP.NET Core 3.1 WebApi
- Swagger
- CQRS / Mediator Pattern using MediatR Library
- Wrapper Class for Responses
- CRUD Operations
- Inverted Dependencies
- API Versioning
Entire Source code available at the end of the blog post! https://www.codewithmukesh.com/blog/onion-architecture-in-aspnet-core/
submitted by /u/iammukeshm
[link] [comments]