Kevin,
The work has already been done for you if you invest in a framework. There are several to choose from that use Typed Entities (classes). I use Mere Mortals which uses a Customer Business object where you put your code to get the data. Then there is a CustomerEntity class that is the typed data.
You could do this yourself, but it would be far more work than purchasing a framework that does all this for you for every application you want to build.
Tim
>Now that I have invested some time learning how to use DataSets, I'v been thiking that if I created a class for each table, I would have dozens of classes.
>
>So what not create a generic class that gives back a typed dataset based on a value passed in. For example, if I want to
>create a customer dataset, then pass 'customer', for invoice headers, pass 'invhead' and so on.
>
>The code would then be smart enough to create the appropriate dataset class to return. I have no idea what would be
>involved in creating this, but the concept seems beter than one class for each table.
>
>I'm open to suggestion. If anyone has done this, I would be interested in how to proceed.
Timothy Bryan