I've read the questions asking about the right way to inject data access into POCOs, and the consensus seems to be "don't". Fine, what is the right way then? If I have an Order object, and I want a list of the OrderLines, I don't want to explicitly assign that list to the POCO externally, that's horribly ugly. So if I can't use DI to give the POCO a little intelligence, do I need to create a dummy object that can grab the extra information?
views:
97answers:
1
+1
A:
Sounds like you are trying to establish a one to many relationship.
How to use “one to many” relations in SubSonic
How do I setup my POCO’s with Subsonic 3 and the SimpleRepostitory? or where is the convention?
Aaron
2009-12-04 01:27:52