lundi 9 mars 2015

Should I separate IoC binding seperation by project

I am new at domain driven design architecture. My project solution is like this:



  • Presentation(Web)

  • ApplicationLayer

  • QueryLayer

  • QueryHandlerLayer

  • DataLayer


I read from articles theese separations is doing to isolate jobs.


Presentation project references ApplicationLayer But does not reference QueryLayer,QueryHandlerLayer and DataLayer.


But I am using IoC container and bind types to interface.



  • container.Bind(data interfaces).To(data classes);

  • container.Bind(query interfaces).To(query classes);


I can do this on PresentaionLayer. But now all projects will be add reference to presentation layer.


Is this an issue about architecture? Or May I separated IoC container binding for all layers?


Aucun commentaire:

Enregistrer un commentaire