After reading the book I decided to use the BLL/DAL architecture in my current project. So far I've gotten the layers written in a similar way to the book (3 files per object: business obj, data obj, and obj provider), but I've run into something that the book doesn't address and I'm having trouble finding info on.
All of the objects in the book are made up of simple typed properties (DateTime, int, string, etc).
In my application (for a school) I've got an object "Student" that among other things contains 3 "Contact" objects. One has the contact info (address,phone,email,etc) for the student, and then a Contact for each parent.
My problem is that I don't know where to put the code in the Student files than manages the Contact objects.
For example if I do:
Student joe = Students.GetStudentByID(15);
joe.Grade = "A";
joe.ContactInfo.phone = "555-5555";
joe.Father.email = "
[email protected]";
joe.Update();
Should the Student object update the Contact object in the business layer or in the data layer?