Hi Randy, ... I need to apologise for my sloppy writing in the previous email. I originally said "Something will need to generate the UI widget/adapter, and...
As I understand it, the factory is the central place for building and reconstituting an entity. While repositories can lookup for instance, it seems ideal to...
Converting a DataSet into objects is just the sort of thing I meant by "reconstitution". It is a factory job, but best encapsulated behind the repository...
Thanks Eric, this is in line with what I was thinking. Getting very .NET specific here, a much narrower interface like you describe seems to be (after...
Kris, In my model of the world, we have repositories which depend on IDataReader, and they themselves retain that dependancy without passing it on. The ...
Hi Nick, I agree that the repository depends on IDataReader since one of its roles is to retrieve results from the database Although the repository retrieves...
Enter your vote today! A new poll has been created for the domaindrivendesign group: Do you think this group should be moderated at this time in order to ...
domaindrivendesign@ya...
Jul 6, 2004 6:40 pm
1199
Enter your vote today! A new poll has been created for the domaindrivendesign group: Would you be willing to act as a part- time moderator for the group? o...
domaindrivendesign@ya...
Jul 6, 2004 6:40 pm
1200
There has been a noticable increase in spam to the group recently. In my personal opinion, it is still only a minor anoyance, and isn't high enough volume to...
Hi Eric Have new members default to "moderated". The group still appears as "unmoderated". Occasionally un-moderate a user who has posted sensibly. That is...
My policy on groups like BayXP is to unmoderate someone the first time they say something sensible. There's a little hyperlink in the corner of the message...
How do you model many to many relationships between two objects when both of the objects are entities (and not value objects)? We have one case where "Account"...
... Yes. And if yahoo would put a reply location in their email that would pass the message and unmoderate the person, it'd be even better than it is now. I'm...
I am hoping to get some feedback from the group regarding exposing entities from an aggregate root entity. Initially I had started off with standard...
Hi Kris, My $0.02 is that that's a totally desirable thing to do since a User "belongs to" a Company. That leads to client code (needing access to Users)...
I used to put this kind of behavior on "Parent" objects, but since I've moved to a different approach. It is best to keep consistently applying the same...
Randy, I’m not saying my approach is purely DDD, but rather that it has served me better than all other approaches so far. I try to stay away from ...
I didn't mean "client code" in the client/server sense. I mean whatever code invokes UserManager methods - e.g., maybe the code of a Service-Layer service. I...
Randy, Just reading (perhaps more into) your response, but do I remember Eric stipulating he didnt really advocate domain objects talking to repositories ...
I'm not sure how well this fits into how Eric and the other DDD gurus around here would advocate doing things but an approach I like to take is to have a...
Nick, I agree that it isn't a perfect fit in terms of the patterns and their conventional usage, which is what prompted the question on my part. Essentially...
Steve, Haven't butted heads with you in a while :-) Personally, I don't like that the DomainObject is aware of its Repository. Other things like FindOne and...
Udi, How did I know you were going to say that. :-) Anyone else care to agree, disagree with having a FindOne and FindAll on the Domain Object that wraps the...
I agree with Udi, Domain object shouldn't have these methods, the repository should. I think this code is an abuse of inheritance. Domain objects should be...
Ramon, ... In the example provided the Customer doesn't know anything about how to retrieve the User, all it knows about is the existance of the User. To...
... Yes I agree Kris. However, I personally have arrived at the conclusion that the "need" to look something up can be removed by a layer of indirection, be ...