In the previous chapter, you learned how to use ADO.NET to retrieve information from a database, how to store it in the DataSet, and how to apply changes by using direct commands. These techniques are flexible and powerful, but they aren’t always convenient.
For example, you can use the DataSet or the DataReader to retrieve rows of information, format them individually, and add them to an HTML table on a web page. Conceptually, this isn’t too difficult. However, moving through the data, formatting columns, and displaying it in the correct order still requires a lot of repetitive code. Repetitive code may be easy, but it’s ...