Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetAllData() for custom domain-table
Message
De
10/12/2008 11:05:11
León Carpay
Carpay Automatisering
Pays-Bas
 
 
À
08/12/2008 15:55:02
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01365978
Message ID:
01366457
Vues:
9
... question

>
>If you want to return a DataSet or DataTable you can do that by calling the proper method on the business object base class also.
>
>public DataSet GetDomainRefByDomainID(int domainID)
>{
>    return this.GetDataSet("SELECT * FROM DomainRef WHERE DomainID = @DomainID",
>          this.CreateParameter("@DomainID", domainID.ToString()));
>}
>
>You do not need to create a connection and all that; the framework already does that for you much better.
>Tim


thanks Tim, I had to get the first table out of the set but that did the job
gr leon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform