Skip to content

talukderroni13039/CleanArchitecture

Repository files navigation

CleanArchitecture

Clean Architecture Design For .Net MVC. It is also known as Onion Architecture. In this Diagram dependencies flow go to the Innner circle. The Application Core has no dependencies on the other layer. And you can see on the diagram that the Application Core has no dependencies on other application layers.The Domain and Appliction is the Core of the solution.Outside of the application core UI Interface and InFrastecture depends on the core but not depend one another.

image

Goal

The Goal of this Repository is to provide basic Solution Architecture for Domain Driven Design. This Solution provides Independent of Database and Frameworks. The Independence of UI helps to change easily, without changing the rest of the system and business rules. The Separation Layer Provides Maintanable Application.

Domain

The Domain layer consists of all Model or Entities Class of the entire Application.It Sperate the Application From Other layers.It Does not depend on other Layer

Application Layer

This Layer mainly consists of the Business Logic and Services and All other Interfaces. Service like Email Can be Included Here.

OnionMainLayer

Infrastructure Layer

The Database Context Class is InCluded Here.And Other Dependecy Injection like Invertion of Controll is also Applied in this layer. Since this Layer is Dependent on Domain That's why You have to Add Referece to this Class Library.For DbContext class You have to add EntityFrameWork references.

UI Layer

This is the entry Point of your Application.It Currently use The MVC architecture. The Area , Controller ,Content ,View and Config file is Included Here.Since this Layer is Dependent on Domain That's why You have to Add Referece to this You can also Add another layer like Api and Test For optimize the Application.

allLayer

About

Clean Architecture Design For .Net MVC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published