New answers tagged

3

Should the domain model document/account for these queries to the DB, or is there a better way to do this? Real answer - it's fine. There's no rule that says all of your domain code needs to be implemented in the same code, run in the same process, or located at a single host. Udi Dahan frequently emphasizes the differences between logical and physical; you ...


2

Instead of answering how database optimizations can coexist with the domain model, I’ll tell you why you shouldn’t. Eric Evans wrote the book ’Domain-Driven Design: Tackling Complexity in the Heart of Software’. The Heart of Software is the domain model. That is where the complexity should be solved. The database on the other hand is a rather unimportant ...


2

As you can see there I have been using 3 ways but which one is right and why? The first thing that I would call your attention to is that this is purely a design question; what you are asking, really, is whether the OrderItem constructor should be called from inside the domain model or from the outside. Design is what we do to get more of what we want than ...


Top 50 recent answers are included