title: c# design so that I can easily add/update objects which mapped to databases
body: <p>I have a table in the db called task. This table has many other tables associate with it. For example, a task has an individual associate with it, and has many resources. Many of the columns in task has codes such as language id, group id and so on. </p>
  
  <p>I want to implement a class called Task. This class will be able to insert a task and all the related values in different tables. I want it to be flexible and robust enough so that I can keep added different objects to insert/update the underlying db. What kind of design pattern is best for it? Can you give me an example? thanks!</p>