Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# DataSet Factory Class
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
C# DataSet Factory Class
Divers
Thread ID:
01311453
Message ID:
01311453
Vues:
114
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform