Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# DataSet Factory Class
Message
 
À
17/04/2008 11:34:06
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01311453
Message ID:
01311465
Vues:
13
I'm not ready to buy a framework. This would be more of a learning experience for me than anything, although if I can
create the class, then I might use it later.


>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.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform