When analyzing life cycle of domain objects, aggregate is basic element for objects grouping.
I am having trouble implementing aggregetes in C#.
One short example, with couple of classes, would be very helpful.
Or any link on this theme.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At no point should logic involving
OrderLines be exposed outside of an instance ofOrder. That’s the point of aggegrate roots.For a .NET specific reference, see Applying Domain-Driven Design and Patterns: With Examples in C# and .NET. Of course, the standard reference here is Domain Driven Design: Tackling Complexity in the Heart of Software . There’s a good article on MSDN too.