domain-driven-design
Where to put the save/pre save methods in a domain object?
I want to enforce some rules every time a domain object is saved but i don\'t know the best way to achieve this. As, i see it, i have two options: add a save method to the domain object, or handle the[详细]
2023-04-05 14:26 分类:问答DDD: keep a link to an entity inside an aggregate root, for reporting only
I\'m refactoring a project using DDD, but am concerned about not making too many Entities their own Aggregate Root.[详细]
2023-04-05 14:22 分类:问答Is it good to store CustomMembershipUser and Agregate classes in domain library
I need just a few confirmation that I do some stuff in the right way or I make horrible mistake :) 1) I put my data access layer (MyProject.Domain) in sepparate assembly. There I have entity object \"[详细]
2023-04-05 12:58 分类:问答Help choosing my DDD aggregate roots within a provided scenerio?
I\'m fairly new to DDD and have read a few articles about the concept so pardon if I\'m lacking some knowledge. I\'m curious on how this example should be modeled with aggregate roots.[详细]
2023-04-04 23:37 分类:问答DDD: how to keep a complex value object immutable?
I\'d like to model an Address as a value object. As it is a good practice to make it immutable, I chose not to provide any setter, that might allow to modify it later.[详细]
2023-04-04 09:47 分类:问答.NET MVC Controller with multiple Repositories and Services?
Look at my Controller (I\'m using Dependency Injection to manager dependencies): public RoleController(IRoleRepository roleRepository, ISiteRepository siteRepository, IUserRepository userRepository,[详细]
2023-04-04 02:51 分类:问答Data access layer design in DDD
Excuse me for my poor English. Ok, I\'m thinking about DDD approach now and it sounds great but... There is one little question about it. DDD says that the domain model layer is totally decoupled fro[详细]
2023-04-04 00:36 分类:问答Saga that depend on events from the past
I have a question how to deal with a saga where the decision making depends on an event that was published before the saga was created.[详细]
2023-04-04 00:04 分类:问答Immutable collections in Doctrine 2?
I\'m looking for a way to return an immutable collection from a domain object in Doctrine 2. Let\'s start with this example from the doc:[详细]
2023-04-03 20:14 分类:问答Help determining aggregate roots
I am stuck in a vortex of analysis paralysis trying to apply DDD to various applications i have either developed in the past or plan on doing in the future.[详细]
2023-04-03 10:48 分类:问答