Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetAllData() for custom domain-table
Message
From
10/12/2008 12:31:13
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
10/12/2008 11:05:11
León Carpay
Carpay Automatisering
Netherlands
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01365978
Message ID:
01366478
Views:
7
>... 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
Your welcome, glad it worked for you.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform