Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent & Child
Message
From
05/08/2002 00:34:08
 
 
To
05/08/2002 00:25:15
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00686093
Message ID:
00686094
Views:
42
Nabil,

That will work, however I wouldn't do it that way because of the fact that it requires two round-trip calls to the server. Instead, either send both queries at the same time (your Sql string will contain both queries in it) or call a Stored Procedure that returns both tables (that is the way that I would do it).

~~Bonnie


>I created a typed dataset which consist of a parent table,child table, and one to many relation.
>
>The mechanism I'm following to retrieve the data of both tables is:
>1- Assign the parent's parameters values.
>2- Fill parent table.
>3- Assign the child's parameters values.
>4- Fill child table.
>
>Is that ok, or there is a better approach?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform