Recently finished reading Eric Evans Domain Driven Design (very informative, very enjoyable) however come to first major project since completing the book and got the issue how to handle the domain model save?
I appreciate the use of services / repositories and how they can aid the model but how would they handle the model save?
My previous domain model saves would follow the following method call structure;
ParentClass.Save {
ParentClassDB.Save
ChildObject1.Save
ChildObject1DB.Save
ChildObject2.Save
ChildObject2DB.Save
etc etc
}
Does the service take control of calling the appropiate save routines on the child objects?