Home > database >  clean architecture - extensions place
clean architecture - extensions place

Time:09-14

I'm using clean architecture in asp.net core

enter image description here

where should I put the extensions method folder

CodePudding user response:

It depends which dependencies this code would create. Generally speaking:

  • put as less code as possible in the outer most layer/circle
  • strictly follow the dependency rule
  • keep your business logic free from "painful dependencies" (external frameworks, IO)

A more detailed discussion on where to put code in Clean Architecture can be found here: https://www.youtube.com/watch?v=7-IEhM6uiUU&t=12s

  • Related