Business Objects
Date: 04/20/06
(C Sharp) Keywords: software, web
I'm writing some inventory control software (still!) and I've got a question about how best to implement my business objects.
Basically, my question is, do my Business Objects themselves encapsulate the functionality of updating themselves? For example, should I have methods such as InventoryItem.UpdateToDB and InventoryItem.GetFromDB?
Does anyone here have some good website or book recommendations for these kind of questions? I've always been a good coder, but I'm never sure of my actual design skills.
Also, what is the best way to check foreign key constrains? Should I use some kind Relation class like a dataset has, or is there a better\easier\doubleplusgooder way?
Source: http://community.livejournal.com/csharp/59595.html