I think you're basically on the right track. There's the constructor approach and the setter approach for injecting dependencies. The constructor approach has...
Thanks, Jeff. You have made my day! -David ... injecting ... out). The ... with ... for ... Your ... abstractions ... to ... Injection ... interfaces ... ...
Good day to all! As I have read about aggregates, it says that outside objects can only reference the root object and that if outside objects wants to perform...
You can invoke methods on the Tire, but you access the Tire via the car, e.g.: Car car = CarRepository.FindByVIN(); Tire tire = car.getFrontLeftTire(); ...
Jim- I suspect Eric is referring to Patterns of Enterprise Application Architecture. A search for "martin fowler bibliography" brought up the link below: ...
It sounds like errata. Most likely it was meant to say "Fowler 2003", but I need to look case by case because I referenced more than one Fowler book. Do you...
Eric, A quick Google Book search on DDD for Fowler 2002 shows that it appears on pages 73, 79, 149, 150, 153, 156, 159, 234, and 509. Samer ... but I...
Wow! That's so cool. I'll have to play with that tool at some point. Ok, I looked at each of those pages, and each one should read "Fowler 2003", which is the...
Samer, Can you rerun that search to catch the "Fowler 2002" references that are not in parenthesis like that on pg. 153, second to last paragraph? BTW: How...
Do DDD principles allow business rules in factories? I'm thinking for example of a CustomerFactory and the business rule that each customer's email address...
There have been some questions on this list in the past about how to implement specifications, and specifically how to implement specifications that work both...
... implement ... "because LINQ can't convert specification.IsSatisfiedBy(c) to valid SQL." Linq != Linq to Sql A Queryprovider might be able to make it work...
We asked ourselves that same question a couple years back. From a business driven perspective we asked ourselves, "Whose business is it to make sure no one...
Oddly I was just discussing this with a colleague but since neither of us is experts on Linq we weren't sure if this sort of approach would work. I think the...
Your idea of having EmployeeSummary and so on seems sensible and we do something similiar but we don't consider them domain objects. FOr example although we...
Have you thought of posting an example implementation as it does sound interesting but I can't seem to find much about it on your blog. ... Anyway... ... have...
This is what we tend to do, we have a thin coordination layer sitting above the domain doing this sort of thing. OrderAcceptanceService that gets an...
... Sorry that part is unclear. It follows on from the Being Ingorant in LINQ to SQL where I show how to write a data context agnostic repository that allows...
Good day to all. I hope you can still make things clear for me. =) For example, if I have an E-Commerce application, and in my domain model, I have Department,...
I came across this tool today. It seems to help you build out your domain without having to worry too much about the plumbing needed for things like...
Joey, Are the categories specific to the department or are they categories that could be used elsewhere? Do the products only belong to those categories. Can...
... hard coded prefetch paths. That's red flag no.1. These never work, you need in-code defined prefetch paths (eager load). Another is: there's a requirement...
I would say that Department, Category, and Product are all entities. They each have identity, e.g. you would not have multiple instances of the same Category,...
Colin, I think the problem with my remote service is that I do not get to utilize my employee and organization domain models anywhere. It almost feels like I...
I put together a small demo with it. The sql that lightspeed generates is very clean and there's a concept called Named Aggregates which let you load a...