Where to implement Automapper in a DDD + layered architecture

To answer your specific question I will speak more generally about your architecture. The architecture you’ve devised for your project is subtly different from a typical architecture used with DDD. While the way you’ve partitioned responsibilities is typical, in DDD, domain classes aren’t responsible for their own persistence. In fact a mantra of DDD is … Read more

How can I get overlapping divs with relative positions?

Wrap an absolute positioned div with a relative positioned div: .container { position: relative; width: 200px; height: 100px; top: 100px; background: yellow } .one { z-index: 1; position: absolute; width: 100px; height: 20px; background: red; } .two { z-index: 2; position: absolute; width: 100px; height: 20px; background: blue; left: 10px; top: 10px; } <div class=”container”> … Read more

Domain Driven Design – how the layers should be organized?

Speaking in terms of more “classical” DDD, yes domain objects are typically not allowed anywhere outside of the domain. But it is not an absolute rule that domain objects are not used in the presentation layer. For example, Naked Objects represents a school of thought where domain objects are used directly. I myself adhere mostly … Read more