Onion Architecture
An Implementation of Onion Architecture with ASP.NET Core 5 Web API. With this Open-Source Template, we create an abstraction layer between the data access and the business logic layer of an application. By using it, we are promoting a more loosely coupled approach to access our data from the database. Also, the code is cleaner and easier to maintain and reuse. Data access logic is in a separate class, or sets of classes called a repository, with the responsibility of persisting the application’s business model.
Check out the GitHub to learn more about this Open Source Project.
Getting Started
Clone the repo from GitHub
git clone https://github.com/raihanM95/OnionArchitecture.git
Your Solution Template is Ready!
Next, open up WebApi/appsettings.json to change the connection strings and Run these commands to update the database.
update-database
Technologies
- ASP.NET Core 5 Web API
- .NET Core 3.1 Libraries
Prerequisites
- Visual Studio 2019 Community and above
- .NET Core 5 SDK and above
- Basic Understanding of Architectures and Clean Code Principles
About the Author
Raihan Mahmud
- Facebook Page - Raihan Mahmud RAM
- Facebook - Raihan Mahmud RAM
- Twitter - Raihan Mahmud RAM
- Linkedin - Raihan Mahmud RAM
Licensing
raihanM95/OnionArchitecture Project is licensed with the MIT License.