Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# DataSet Factory Class
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
C# DataSet Factory Class
Miscellaneous
Thread ID:
01311453
Message ID:
01311453
Views:
113
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.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform