Should I have a separate namespace for Domain Services?

by w0051977   Last Updated January 22, 2018 14:05 PM

Say I have a namespace as follows:

CompanyName.TechnologyName[.Feature][.Design]

Like this: https://github.com/vkhorikov/DddInAction/tree/master/DddInPractice.Logic/Atms

.Design is the AggregateRoot e.g. BuyingAggregate. This namespace contains all of my Entities and Value Objects. Say I also introduce a Domain Service, which uses entities and value objects from the BuyingAggregate only. Should this Domain Service ve part of the BuyingAggregate namespace or should it be placed in another namespace?

I believe it should be put in the same namespace, however I remember reading a question where the consensus was something different and I cannot find the question - hence the reason for my question.



Related Questions


Domain model design

Updated July 23, 2016 08:02 AM


What is a domain?

Updated October 23, 2017 18:05 PM