Onion Architecture in ASP.Net MVC

 

???? Onion Architecture ?

?? ??????? ??????? ??  ????? ????????? ?????? ?????? ????????? ???????? ?????????? ?? ????? ??????? ??? ????? ???????? ????????.  ?? ??????? ??? ??????? ???? ??? ?? ??? Jeffery Palermo ?? ?????? ?? ??? 2008

 

????? Onion Architecture

- ?? Onion Architecture  ??????? ????? ?????? ????? ??????? ???????? (Interface) .

- ?? ?????? ??? ??????? ???????? ??? ?????? ??? ????? ???????? ? Web Service  ????? ?? ??? ?? ??????? ????????.

- ???? ??????? ?? ???? ???????? ?? ???? UI  ?? ??? ?? ??????? ???????? .

- ??????? (Obj) ???? ???? ?????? ?? ??? ?? ??????? ????????.

- ???? ??????? ???????? ?? ????? ??? ????? ???????? ?? ???????? ??? .

- ?? ????? ?? ????? ??? ???? ?????? ??? ??????? ????????.

- ?????? (domain object)???? ?? ?????? ?? ?????? , ??????  ?????? ??? ?? ?? ????? ???????? ?????? ????? ????????.

- ?? ???????? ??? ?? ???? ??? ?????? ???????? , ?? ?????? ??????? ??????? ?? ????? ??? ??????? ???????? .

- ?? ??????? ?? ???? ???? ????? ??? ????? ??????? ???????? .

 

???? ???????

 

????? ?? ????? ???? ??????? . ??? ???? ?? ???????? ??????? ??????? :

  1. Core project (Class library)
  2. Infrastructure project (Class library)
  3. Web project (MVC project)

 

 Core Project

 ?????? ??? ?????? (domain entities) ????????? (repositories interfaces) .

Infrastructure project

???? ??????? ??? ????? ??? ?????? ???? ?? ??????? ???????? .

Web project

?????? ???????? ??? ????? ??? MVC Controllers  ?HTML  .

???? ??????? ??? ?? ???? ??? ????? ?????? :

???? ........

 

Source:c-sharpcorner,debugmode



Share

Comments