Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableAdapters Added by Default
Message
 
À
09/05/2007 13:34:50
Information générale
Forum:
ASP.NET
Catégorie:
Installation et Configuration
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01223727
Message ID:
01223973
Vues:
25
>>>Plus, they only are generated for *one* table ... what happens for a DataSet that contains many tables? Won't work (at least from what I've seen ... if there *is* a way to generate a TableAdapter for all tables in the DataSet, I don't know how to do it).
>>
>>You can have many TableAdapters in a dataset, typically one is created for each table.

>
>But is it *auto-generated*??

Not sure I understand your question. Each TableAdapter will create a class in the form of {DataTableName}TableAdapter that contains the generated dal for it's associated DataTable. This dal class will have all the methods required for basic CRUD as well as those created by any additional queries added to the TableAdapter. That's one of the neat features is the ability of the TableAdapter to contain multiple queries.

Each TableAdapter class is auto-generated initially. You can go back and make changes and re-generate the class from scratch or you can choose to make manual changes when required.
Michael McLain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform