Let’s say you want to update one row in a table. You could write a large amount of code constructing an UpdateCommand’s parameters, or you could write less code with better readability, by filling a (typed) DataSet and updating one item.

The problem here is that you have to fill the DataSet to get the Row you want (via Select).

Is there a better way? Perhaps I could write something that will give me an object I can update by just setting its (typed) properties, as I would do with the DataSet’s Row?

No comments