Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General DB Class
Message
 
À
17/06/2003 10:28:13
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00800788
Message ID:
00800824
Vues:
20
This message has been marked as the solution to the initial question of the thread.
If you are looking for code, here is what I use:
public static DataSet GetDataSet(string tcSQL, string tcTableName, SqlConnection toConnection)
{
  DataSet loDataSet = new DataSet();
  SqlDataAdapter loSqlDataAdapter = new SqlDataAdapter(tcSQL,toConnection);
  loSqlDataAdapter.Fill(loDataSet, tcTableName);
  return loDataSet;
}
>Hi,
>
>I have created a class that returns an active connection to the database.
>
>Using this connection, I want to create a class that can be used to return data from the database.
>The ideal situation is for all programmers in our company to use this generic class, passing in an active connection as well as table names so that the class would return a dataset.
>
>Does that make sense?
>
>I need some advice, hints...
>
>Thanks,
>Alvin
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform