domain-driven-design
domain service or method inside domain
开发者_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[详细]
2023-03-28 07:34 分类:问答DDD on an enterprise scale?
Looking for suggestions on how to approach this problem and to understand if Do开发者_开发知识库main Driven Design is really the best pattern here.[详细]
2023-03-28 03:15 分类:问答Where does a Comparator live in a domain-driven MVC world?
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[详细]
2023-03-27 16:55 分类:问答DDD Aggregate Question (.NET, EF)
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[详细]
2023-03-27 15:40 分类:问答NHibernate Cascade Behavior for Same Session Updates
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[详细]
2023-03-27 15:03 分类:问答DDD: Domain model namespaces convention
I\'m writing an application with a domain model in PHP, and am wondering which naming convention I should adopt.[详细]
2023-03-27 10:41 分类:问答Where should enums live in an MVC project structure?
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[详细]
2023-03-26 21:10 分类:问答Filters in DDD Repository
There is Campaign Entity and for that, I have CampaignRepository which have this functions public IList FindAll();[详细]
2023-03-26 18:26 分类:问答Persisting immutable objects to a relational database
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[详细]
2023-03-26 05:53 分类:问答Service contracts vs. domain objects
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[详细]
2023-03-26 02:39 分类:问答