Skip to main content

Posts

Showing posts with the label Clean Architecture

Clean Architecture In .Net5 Application

In this article, we will learn about Clean Architecture and then we will implement a .Net5 sample application. Clean Architecture: Clean Architecture core building blocks are: Application Core Infrastructure UI Application Clean Architecture lives on the dependency inversion principle. In general business, logic depends on the data access layer or infrastructure layer. But in clean architecture, it is inverted, which means data access layers or infrastructure layers depend on the business logic layer(which means Application Core). So with the dependency inversion technique it easy to configure 'Unit Test' or 'Integrating Test'. Application Core: Application Core is a top layer or parent layer which will not depend on any other layer. So other layers like Infrastructure or UI depend on the 'Application' core. Application Core contains 'Entites', 'DTOs', 'Interfaces', 'BusinessLogics', etc. So while creating projects if we want