Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I read your article about ddd and it's very usefull for me.I want to ask that what is the advantage of using aggregates (as it presents group of objects with one root)

as explained in your example customer car and tier

suppose my code is
C#
public class customer
{
public Integer GetScrapTiers()
{
//this returns no of scap tiers for a customer who has a car
car.tier objcar=new car.tier();
objcar.getNumberofTier(Cust_id,scrap);//for cust_id tyres of type scrap
}

}
[this is an aggregate we can say]
public class Car
{
private Tier
{
private integer getNumberofTier(id,type)
{
//implement..
}
}
}
}
Now is in this way we will implement aggregate or in some other way please explain.
Posted
Updated 7-Aug-10 4:06am
v2
Comments
Richard MacCutchan 7-Aug-10 9:04am    
This question obviously relates to an article here on CodeProject. Please use the forum at the end of the article to post questions to the author.

1 solution

It looks like you want to ask this question to an author related to his/her article.

I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum.

Please post the same at the article's message forum.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900