开发者_Python百科I have two aggrgate Roots, BonusProgram and Advertiser. Now the rule isan advertiser can have only single bonus program at a time. Now to assign bonusProgram to advertiser, what shoul
Looking for suggestions on how to approach this problem and to understand if Do开发者_开发知识库main Driven Design is really the best pattern here.
I have a class that needs to be sortable in a couple of different ways, many of which break the equals() contract, so I need to have a bunch of different Comparator classes. The question I have is whe
My domain model (simplified) contains a story, team, members, and comments. I\'m at the point where I need to allow the user to write a comment about a story and I have the comment entity belonging to
Documentation on NHibernate cascade settings, discusses the settings in the context of calling the Save() Update() and Delete() methods.But I can find no discussion of cascade behavior in the context
I\'m writing an application with a domain model in PHP, and am wondering which naming convention I should adopt.
I\'m using .NET MVC 3 Code-First approach. My domain have a en开发者_开发知识库tity called Question, this entity have a Score property that is Byte and I want to replace that property to an Enum and n
There is Campaign Entity and for that, I have CampaignRepository which have this functions public IList FindAll();
I\'ve seen certain object-oriented experts advise that domain objects (POCOs) should be immutable. That is, their state should be entirely determined at construction, and changes to state should requ
Say I have two interfaces to my application: A web front-end A back-end which provides data Both of them talk to a web-service, and that web-service in turn, handles business logic and talks to a