PC Review


Reply
Thread Tools Rate Thread

about the DataRow.GetParantRows

 
 
Tony
Guest
Posts: n/a
 
      21st Dec 2011
Hello!

If we have a the Database with tables Customers and Orders these have a one
to many relationship.
One Customer can have many Orders but one Order can only come from one
Customer.

In all situations that I can see a DataRow will have at most one parent row
in the related DataTable.
So sometime it can be useful to use method GetParentRow to fetch for example
which Customer is the parent to a specific Order.

So my question when is it meant to use the GetParentRows.
I can't find any example when one child have many Parent. if you have a many
to many relation you create a relationstable in between.

//Tony

 
Reply With Quote
 
 
 
 
Kris Sheglova
Guest
Posts: n/a
 
      2nd Jan 2012
Hi Tony,

Databases can have many to many relationships e.g. a student could be
studying many courses, and courses can have many students.

Kris Sheglova
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:53 AM.