Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Access Method
Message
De
31/10/2007 13:46:46
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB 8.0
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01265411
Message ID:
01265450
Vues:
11
Patrick,

Do NOT put the DataAccess in the Form. You need to organize your solution so that you have separate projects for DataAccess (and separate Business projects too). Then, have the DataAccess class get your data from the database and pass back a DataSet with the DataTable in it. Use that to bind to your controls. Since you say the layout is the same for all your tables, simply create a DataSet based on an .xsd of your table's layout.

If you need more direction than this, just ask a few questions and we'll see if we can get you pointed in the right direction.

~~Bonnie



>I would like to create a Form where the users selects a table at runtime and then that table is bound to controls on the

form. The tables will all share the same table layout.
>
>What is the best DataAdapterSourceTableSetTypedContextBinder thingy to use?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform