aggregateroot Questions

3

Solved

I'm afraid I already know the answer, but I'm hoping that somebody can provide an alternative solution that haven't found before. As always doing DDD according to Effective Aggregate Design is more...
Sialkot asked 29/11, 2012 at 12:44

2

I have two aggregate roots and two non aggregate root entities: I know, that the relation D -> B breaks DDD principle. I heard, that in the most cases the solution is to make the referenced ...
Murguia asked 15/11, 2012 at 11:54

4

Solved

As part of my domain model, lets say I have a WorkItem object. The WorkItem object has several relationships to lookup values such as: WorkItemType: UserStory Bug Enhancement Priority: High ...
Buddleia asked 13/10, 2012 at 6:39

1

Solved

I have a City aggregate, having a list of PointOfInterest entities. This latter entity lies logically inside the City aggregate for reasons that won't be explained here. No entity holds a link to P...
Piezochemistry asked 5/8, 2012 at 10:20

1

If i have designed an AR like the below, how do you think i should go about say updating a property in one of the order line objects ? For Example how can i change the title for one of my order li...
Bakke asked 30/7, 2012 at 17:39

1

Solved

I understand that Aggregate Roots are the only object that will be loaded by the client and all operations for the objects within the aggregate root are done by the Aggregate Root. By the same conv...
Conjunct asked 12/7, 2012 at 7:50

1

I am modelling an archive which is part of an video demand system. Think of the archive like windows explorer where multiple users can create folders, upload videos, restructure folders etc. There ...
Fisticuffs asked 23/6, 2012 at 11:22

3

Solved

I'm stuck on finding the proper way to refer to entities located inside an aggregate root, when we only got their identities coming from URL parameters. I asked a previous question which ended up f...

2

Solved

I am attempting to refactor my application from a repository per entity to a repository per aggregate root. A basic example would be I have an entity root of Cars. Cars have hire contracts. As far...

3

Solved

Example: Your database has a SQL view named "CustomerOrdersOnHold". This view returns a filtered mix of specific customer and order data fields. You need to fetch data from this view in your applic...

2

Solved

I'm learning domain driven design. I am currently trying to write a simply application in C# designing it using DDD. This application has an aggregate root A which can contain 0..n sub entities B. ...

1

Solved

I was reading a similar question on SO: How update an entity inside Aggregate, but I'm still not sure how a user interface should interact with entities inside an aggregate. Let's say I have a Use...
Judejudea asked 25/8, 2011 at 20:33

1

Solved

I still have some confusion with the Repository Pattern. The primary reason why I want to use this pattern is to avoid calling EF 4.1 specific data access operations from the domain. I'd rather cal...

2

I have a couple questions regarding the relationship between references between two aggregate roots in a DDD model. Refer to the typical Customer/Order model diagrammed below. First, should refe...
Wilscam asked 24/5, 2011 at 23:58

3

I'm trying to use the Repository pattern for my current project and i'm currently in the process of trying to model the domain and find the aggregate roots. I've read of the 'Cascading Delete' rul...

1

Which is a better approach, create child entities first, then pass to the aggregate root to add them, or have the aggregate root create them? For example: Order.AddOrderLine(new OrderLine(product,...
Wendt asked 24/1, 2011 at 19:50

3

Solved

We're working on a new project (re-writing existing app), and I'm running into problems with my domain model / repository design. Here is a (simplified) version of two key portions in our domain m...
Convexoconvex asked 26/11, 2010 at 1:29

3

Solved

I need help with finding my aggregate root and boundary. I have 3 Entities: Plan, PlannedRole and PlannedTraining. Each Plan can include many PlannedRoles and PlannedTrainings. Solution 1: At f...
Opportuna asked 1/4, 2010 at 6:13

3

I've been studying DDD for the past 2 weeks, and one of the things that really stuck out to me was how aggregate roots can contain other aggregate roots. Aggregate roots are retrieved from the repo...

1

Solved

I'm just getting started in DDD, and I'm having some trouble figuring out how to accommodate the relational nature of my data. I have what I believe would be considered my aggregate root, but the a...
Huneycutt asked 5/2, 2010 at 20:39

3

Solved

Let's say i got 2 entities - Foo and Bar. Foo is an aggregate root and contains Bar. As far as i understand, it should look like this: public class Foo{ private readonly Bar Bar; } I want to p...
Killick asked 25/9, 2009 at 8:53

© 2022 - 2024 — McMap. All rights reserved.