Hi Justin, ... entity that the ORM generated in the infrastructure layer, how would we extend the ORM employee entity to have a method to have the business...
11860
nbplopes
Apr 1, 2009 9:43 am
There is nothing like a good ORM that allows one to your Domain Objects clean without much fuss. If that is not possible you can always hinherit or do...
11861
Peter Morris
mrpmorris
Apr 1, 2009 10:06 am
... OTOH, EF entities have to inherit from EntityObject which directly couples the entities to infrastructure < Sure it links them to EF, but why is that a...
11862
Sidar Ok
oksidar
Apr 1, 2009 11:14 am
That's not the case any more : http://fabiomaulo.blogspot.com/2008/10/entity-name-in-action-entity.html It is a problem, because it pushes you to to have a...
11863
artur.trosin
Apr 1, 2009 11:29 am
Hi Pete, One thing is that it can give more responsibilities that are not related to domain for a domain object, also by deriving from EF it is strongly tied...
11864
Justin Daubenmire
JDaubenm
Apr 1, 2009 12:19 pm
... From: Sidar Ok Seems that you are bitten by "Entity Framework Leaking into Domains" syndrome. You need a NH or Linq 2 SQl pill to recover :) How can linq...
11865
Sidar Ok
oksidar
Apr 1, 2009 12:28 pm
http://www.sidarok.com/web/blog/content/2008/10/14/achieving-poco-s-in-linq-to-sql.html ... -- Sidar Ok http://www.sidarok.com http://www.twitter.com/sidarok...
11866
Udi Dahan
udidahan7
Apr 1, 2009 12:28 pm
Assuming ordered events isn't advisable, unless you want your entire system to process only one thing at any time. The ability to do things in parallel at a...
11867
Udi Dahan
udidahan7
Apr 1, 2009 12:37 pm
... This is rarely advisable. We don't want our domain model to depend on the message schema (and vice versa). While, within a given bounded context, we may...
11868
Udi Dahan
udidahan7
Apr 1, 2009 12:38 pm
I think that we can agree that which internal objects are used within what you call an aggregate root, and the method called on that aggregate root may change...
11869
Udi Dahan
udidahan7
Apr 1, 2009 12:43 pm
Nuno, Since the information passed to the domain originated in the incoming message, it can be used to create outbound messages as well. In other cases where...
11870
Udi Dahan
udidahan7
Apr 1, 2009 12:45 pm
... applying any sort of NO-like approach I didn't know that that was a goal :-) About prototyping: Personally I like paper prototypes to start with, then...
11871
jonathan_s_oliver
jonathan_s_o...
Apr 1, 2009 1:09 pm
Thanks for the advice Udi. After a bit of thought, our domain model wasn't quite as refined as it needed to be. A few small revisions virtually eliminated...
11872
Justin Daubenmire
JDaubenm
Apr 1, 2009 1:32 pm
... From: Sidar Ok To: domaindrivendesign@yahoogroups.com http://www.sidarok.com/web/blog/content/2008/10/14/achieving Thanks. Did you ever figure out a lazy...
11873
Sidar Ok
oksidar
Apr 1, 2009 1:36 pm
http://www.sidarok.com/web/blog/content/2008/10/29/lazy-loading-with-linq-to-sql-poco-s.html ... -- Sidar Ok http://www.sidarok.com ...
11874
nbplopes
Apr 1, 2009 1:44 pm
Udi, ... That is why I never went that far witn webservices. But I was wondering if there was some "magic" happening there as messaging (publish/subcribe) is...
11875
Greg Young
gumboismadeo...
Apr 1, 2009 2:12 pm
... The rarity that this is advisable is one thing that Udi and I differ on. I have found numerous environments (mostly simple) where this actually can be a...
11876
nbplopes
Apr 1, 2009 3:32 pm
Udi and Greg, The reason I found it interesting is that in one way or another content of the message is a interpretation of the arguments given to the method...
11877
Michael Hart
michaelhartau
Apr 1, 2009 10:53 pm
Hi Sidar, Out of interest - is it possible to achieve that sort of mapping in L2S without the public (and virtual) getters/setters, the DB foreign keys and the...
11878
jdn3times
Apr 2, 2009 1:21 am
... This is undoubtedly a dumb question, but how can one determine whether this is advisable in a particular environment? Are there specific characterstics...
11879
Justin Daubenmire
JDaubenm
Apr 2, 2009 7:35 am
All, Is it possible to have an aggregate of value objects? I understand that you can have an aggregate of entities, but is it also possible to have an...
11880
Justin Daubenmire
JDaubenm
Apr 2, 2009 7:37 am
All, Is it legal in DDD theory to have a value object contain an entity? Or, are only entities to contain value objects? I'm trying to see what the standard is...
11881
Dan Haywood
danh024680
Apr 2, 2009 7:42 am
... Of course. The systems I work on the risk tends to be on the business requirements side (are we building the right thing?) rather than technical risk (we...
11882
Dan Haywood
danh024680
Apr 2, 2009 7:47 am
... So long as the root of the aggregate is an entity, then - trivially - yes. If the root is a value, then you just have a rather large value....
11883
Dan Haywood
danh024680
Apr 2, 2009 7:50 am
... Yes, "in theory" a value object can *refer* to an entity (it doesn't contain it). But it does bind it to a particular domain model. That said, most (95%,...
11884
Sidar Ok
oksidar
Apr 2, 2009 8:24 am
Hi Michael, Unfortunately I didn't dig in further than supporting lazy loading for POCOs with dynamic proxies. You and anybody else are always welcome to take...
11885
andrewdeakins
Apr 2, 2009 9:07 am
Hi there everyone, I got talking with a college about LINQ yesterday and how this fits into the scheme of things when we come to derive our domian model. I...
11886
Joey Samonte
dyowee23
Apr 2, 2009 9:12 am
Good day! I am hoping to write a web survey application, but I'm at a lost where to start. I've tried to search for open-source samples, but they use xml files...
11887
Sidar Ok
oksidar
Apr 2, 2009 11:20 am
Hi Andrew, First what you refer as LINQ seems to be LINQ to SQL. LINQ is a query language in C# code, and is agnostic from a DB, ORM, DataSets or XML. Linq to...
11888
Riches, Ollie (London...
ollie5194
Apr 2, 2009 12:52 pm
to me one of the key concepts of value objects is they are immutable... so in answer to your question IMO yes a value object can contain an entity because you...