Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2004, 03:37 PM
Authorized User
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default find relation in dataset with c#

hello,
i`m programming with c# and sqlserver 2000,
i have DATASET that contain all the tables and the relations between theirs.
be given any column(supoose c1) in any table(supoose t1) in the DATASET, how can i know the child/parent column of this known column(c1)?
or how can i know the parent/child table of this known column(c1)/table(t1)???
i want to emphasise, i have all the relation in the dataset already!!!!!!
thanking you in advance
koby

 
Old April 20th, 2004, 06:56 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You want to find the relations? Can't you just look in the DataSet.Relations collection?
 
Old April 21st, 2004, 01:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

see
Code:
DATASET.TABLE.ChildRelations
HTH.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Relation update ajaidass ADO.NET 1 January 11th, 2007 01:25 PM
create a relation betwn 2 tables in a dataset dhol General .NET 1 August 9th, 2005 09:17 AM
constraint for 1-to-n relation j_yan MySQL 0 December 10th, 2004 11:03 PM
find not primary field in DataSet melvik ADO.NET 8 May 3rd, 2004 08:59 AM
how can i best implement a many to many relation? Haroldd Access 1 July 2nd, 2003 03:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.