Could someone fill me in on the difference between the following three
DataRow methods:
GetParentRow
GetParentRows
GetChildRows
I'm guessing the difference between the first two is that one returns an
array while the other returns a single Row, which leads me to wonder, what
would happen if this option were used but there were more than one parent
row. On that note, in a relationship, what defines one row as a parent and
one as a child? Is it that multiple child fields can refer to a single parent
field and from this, the engine somehow deduces which side is the child and
which is the parent? From what I see above, it's possible for a table to have
multiple parents. How would this work? When you create a relation between
tables in a dataset, if you don't specify which side is which, what rules are
used to decide?
Thanks... 7 8154
Ben,
The parent & child is defined when you define the DataRelation object either
in code or via an XSD.
All three functions expect a DataRelation (either name or actual object) to
determine which relationship to resolve.
For a complete explanation of advanced features of Datasets, such as parent
rows & child rows, I would strongly recommend you read David Sceppa's book
"Microsoft ADO.NET - Core Reference" from MS Press. As it is a good tutorial
on ADO.NET as well as a good desk reference once you know ADO.NET.
Hope this helps
Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com... Could someone fill me in on the difference between the following three DataRow methods:
GetParentRow GetParentRows GetChildRows
I'm guessing the difference between the first two is that one returns an array while the other returns a single Row, which leads me to wonder, what would happen if this option were used but there were more than one parent row. On that note, in a relationship, what defines one row as a parent and one as a child? Is it that multiple child fields can refer to a single parent field and from this, the engine somehow deduces which side is the child and which is the parent? From what I see above, it's possible for a table to have multiple parents. How would this work? When you create a relation between tables in a dataset, if you don't specify which side is which, what rules are used to decide?
Thanks...
Thanks for your reply, Jay. I think I'll grab a copy of that book. From what
I see, this is the definition of the "add" method for adding a new
datarelation:
Creates a DataRelation with a specified parent and child column, and adds it
to the collection.
Supported by the .NET Compact Framework.
[Visual Basic] Overloads Public Overridable Function Add(DataColumn,
DataColumn) As DataRelation
[C#] public virtual DataRelation Add(DataColumn, DataColumn);
It looks like the first column passed in will serve as the parent and the
second will serve as the child. Is this accurate? If so, does it make a
difference which one will be parent and which will be child? I was under the
impression that the child references data in the parent, but I could be
mistaken. I don't see why it should matter if you use GetChildRows or
GetParentRows becausefi you've got a starting point (a datarow) and a
direction to go in (a datarelation), there's really no ambiguity, so why do
you have to chose between these two choices?
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote: Ben, The parent & child is defined when you define the DataRelation object either in code or via an XSD.
All three functions expect a DataRelation (either name or actual object) to determine which relationship to resolve.
For a complete explanation of advanced features of Datasets, such as parent rows & child rows, I would strongly recommend you read David Sceppa's book "Microsoft ADO.NET - Core Reference" from MS Press. As it is a good tutorial on ADO.NET as well as a good desk reference once you know ADO.NET.
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:C1**********************************@microsof t.com... Could someone fill me in on the difference between the following three DataRow methods:
GetParentRow GetParentRows GetChildRows
I'm guessing the difference between the first two is that one returns an array while the other returns a single Row, which leads me to wonder, what would happen if this option were used but there were more than one parent row. On that note, in a relationship, what defines one row as a parent and one as a child? Is it that multiple child fields can refer to a single parent field and from this, the engine somehow deduces which side is the child and which is the parent? From what I see above, it's possible for a table to have multiple parents. How would this work? When you create a relation between tables in a dataset, if you don't specify which side is which, what rules are used to decide?
Thanks...
Ben,
For a 1 to Many relationship it definitely makes a difference.
Consider you have 2 tables: Orders & Order Details.
Which table would you expect to be the Parent?
Which table would you expect to be the Child?
For a Many to Many relationship it physically doesn't make a difference,
however it may logically make a difference.
The following thread has an example of creating 2 tables that have a Many to
Many relationship & use of GetParentRows. Hopefully there is enough there to
give you ideas... http://groups-beta.google.com/group/...2f4a68079a57a8
If the link is broke, search groups.google.com for "Adding a column to a
dataset" from about 24 June 2004 in the microsoft.public.dotnet.languages.vb
newsgroup.
Hope this helps
Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com... Thanks for your reply, Jay. I think I'll grab a copy of that book. From what I see, this is the definition of the "add" method for adding a new datarelation:
Creates a DataRelation with a specified parent and child column, and adds it to the collection.
Supported by the .NET Compact Framework.
[Visual Basic] Overloads Public Overridable Function Add(DataColumn, DataColumn) As DataRelation [C#] public virtual DataRelation Add(DataColumn, DataColumn);
It looks like the first column passed in will serve as the parent and the second will serve as the child. Is this accurate? If so, does it make a difference which one will be parent and which will be child? I was under the impression that the child references data in the parent, but I could be mistaken. I don't see why it should matter if you use GetChildRows or GetParentRows becausefi you've got a starting point (a datarow) and a direction to go in (a datarelation), there's really no ambiguity, so why do you have to chose between these two choices?
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote:
Ben, The parent & child is defined when you define the DataRelation object either in code or via an XSD.
All three functions expect a DataRelation (either name or actual object) to determine which relationship to resolve.
For a complete explanation of advanced features of Datasets, such as parent rows & child rows, I would strongly recommend you read David Sceppa's book "Microsoft ADO.NET - Core Reference" from MS Press. As it is a good tutorial on ADO.NET as well as a good desk reference once you know ADO.NET.
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:C1**********************************@microsof t.com... > Could someone fill me in on the difference between the following three > DataRow methods: > > GetParentRow > GetParentRows > GetChildRows > > I'm guessing the difference between the first two is that one returns > an > array while the other returns a single Row, which leads me to wonder, > what > would happen if this option were used but there were more than one > parent > row. On that note, in a relationship, what defines one row as a parent > and > one as a child? Is it that multiple child fields can refer to a single > parent > field and from this, the engine somehow deduces which side is the child > and > which is the parent? From what I see above, it's possible for a table > to > have > multiple parents. How would this work? When you create a relation > between > tables in a dataset, if you don't specify which side is which, what > rules > are > used to decide? > > Thanks...
Hi Jay,
From the two examples you gave me, the one-to-many example is probably more
straightforward, so I'll focus on that. In a customers / orders example, it's
intuitively clear to me that in a relationship between the two, the customers
table is the parent and the orders table is the child. To me, I assume this
because for one customer, there can be multiple orders. I've been looking for
a formal definition of the two, but unsuccessfully. I guess what I'm trying
to gather is, in this circumstance, when you create and add the relationship
between customers and orders, does the add method assume that the first
column parameter will be the parent and the second will be the child? Is
there something within the relationship to mark the two tables, one as parent
and one as child, or is it more of an intrinsic quality that is merely
implied based on the circumstance (one to many, in this case)? Otherwise,
might you decide which table fills which role and get behavioural
differences? I subscribe to books24x7 and was looking through the book you
recommended. There's some good stuff, but not too much on comparing the
GetChildRows and GetParentRows methods. Thanks for the Clarification, Jay...
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote: Ben, For a 1 to Many relationship it definitely makes a difference.
Consider you have 2 tables: Orders & Order Details.
Which table would you expect to be the Parent?
Which table would you expect to be the Child?
For a Many to Many relationship it physically doesn't make a difference, however it may logically make a difference.
The following thread has an example of creating 2 tables that have a Many to Many relationship & use of GetParentRows. Hopefully there is enough there to give you ideas...
http://groups-beta.google.com/group/...2f4a68079a57a8
If the link is broke, search groups.google.com for "Adding a column to a dataset" from about 24 June 2004 in the microsoft.public.dotnet.languages.vb newsgroup.
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:B3**********************************@microsof t.com... Thanks for your reply, Jay. I think I'll grab a copy of that book. From what I see, this is the definition of the "add" method for adding a new datarelation:
Creates a DataRelation with a specified parent and child column, and adds it to the collection.
Supported by the .NET Compact Framework.
[Visual Basic] Overloads Public Overridable Function Add(DataColumn, DataColumn) As DataRelation [C#] public virtual DataRelation Add(DataColumn, DataColumn);
It looks like the first column passed in will serve as the parent and the second will serve as the child. Is this accurate? If so, does it make a difference which one will be parent and which will be child? I was under the impression that the child references data in the parent, but I could be mistaken. I don't see why it should matter if you use GetChildRows or GetParentRows becausefi you've got a starting point (a datarow) and a direction to go in (a datarelation), there's really no ambiguity, so why do you have to chose between these two choices?
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote:
Ben, The parent & child is defined when you define the DataRelation object either in code or via an XSD.
All three functions expect a DataRelation (either name or actual object) to determine which relationship to resolve.
For a complete explanation of advanced features of Datasets, such as parent rows & child rows, I would strongly recommend you read David Sceppa's book "Microsoft ADO.NET - Core Reference" from MS Press. As it is a good tutorial on ADO.NET as well as a good desk reference once you know ADO.NET.
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:C1**********************************@microsof t.com... > Could someone fill me in on the difference between the following three > DataRow methods: > > GetParentRow > GetParentRows > GetChildRows > > I'm guessing the difference between the first two is that one returns > an > array while the other returns a single Row, which leads me to wonder, > what > would happen if this option were used but there were more than one > parent > row. On that note, in a relationship, what defines one row as a parent > and > one as a child? Is it that multiple child fields can refer to a single > parent > field and from this, the engine somehow deduces which side is the child > and > which is the parent? From what I see above, it's possible for a table > to > have > multiple parents. How would this work? When you create a relation > between > tables in a dataset, if you don't specify which side is which, what > rules > are > used to decide? > > Thanks...
Ben, does the add method assume that the first column parameter will be the parent and the second will be the child?
Why would it assume anything??? Did you read the documentation itself??? http://msdn.microsoft.com/library/de...sAddTopic2.asp
[Visual Basic]
Overloads Public Overridable Function Add( _
ByVal parentColumn As DataColumn, _
ByVal childColumn As DataColumn _
) As DataRelation
[C#]
public virtual DataRelation Add(
DataColumn parentColumn,
DataColumn childColumn
);
The first column *IS* the parent, the second *IS* the child... I'm really
not sure what you are reading that does not include the names of the
parameters, the names of the parameters clearly indicate which is the parent
& which is the child!
Hope this helps
Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message
news:F9**********************************@microsof t.com... Hi Jay,
From the two examples you gave me, the one-to-many example is probably more straightforward, so I'll focus on that. In a customers / orders example, it's intuitively clear to me that in a relationship between the two, the customers table is the parent and the orders table is the child. To me, I assume this because for one customer, there can be multiple orders. I've been looking for a formal definition of the two, but unsuccessfully. I guess what I'm trying to gather is, in this circumstance, when you create and add the relationship between customers and orders, does the add method assume that the first column parameter will be the parent and the second will be the child? Is there something within the relationship to mark the two tables, one as parent and one as child, or is it more of an intrinsic quality that is merely implied based on the circumstance (one to many, in this case)? Otherwise, might you decide which table fills which role and get behavioural differences? I subscribe to books24x7 and was looking through the book you recommended. There's some good stuff, but not too much on comparing the GetChildRows and GetParentRows methods. Thanks for the Clarification, Jay...
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote:
Ben, For a 1 to Many relationship it definitely makes a difference.
Consider you have 2 tables: Orders & Order Details.
Which table would you expect to be the Parent?
Which table would you expect to be the Child?
For a Many to Many relationship it physically doesn't make a difference, however it may logically make a difference.
The following thread has an example of creating 2 tables that have a Many to Many relationship & use of GetParentRows. Hopefully there is enough there to give you ideas...
http://groups-beta.google.com/group/...2f4a68079a57a8
If the link is broke, search groups.google.com for "Adding a column to a dataset" from about 24 June 2004 in the microsoft.public.dotnet.languages.vb newsgroup.
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:B3**********************************@microsof t.com... > Thanks for your reply, Jay. I think I'll grab a copy of that book. From > what > I see, this is the definition of the "add" method for adding a new > datarelation: > > Creates a DataRelation with a specified parent and child column, and > adds > it > to the collection. > > Supported by the .NET Compact Framework. > > [Visual Basic] Overloads Public Overridable Function Add(DataColumn, > DataColumn) As DataRelation > [C#] public virtual DataRelation Add(DataColumn, DataColumn); > > It looks like the first column passed in will serve as the parent and > the > second will serve as the child. Is this accurate? If so, does it make a > difference which one will be parent and which will be child? I was > under > the > impression that the child references data in the parent, but I could be > mistaken. I don't see why it should matter if you use GetChildRows or > GetParentRows becausefi you've got a starting point (a datarow) and a > direction to go in (a datarelation), there's really no ambiguity, so > why > do > you have to chose between these two choices? > > -Ben > > "Jay B. Harlow [MVP - Outlook]" wrote: > >> Ben, >> The parent & child is defined when you define the DataRelation object >> either >> in code or via an XSD. >> >> All three functions expect a DataRelation (either name or actual >> object) >> to >> determine which relationship to resolve. >> >> For a complete explanation of advanced features of Datasets, such as >> parent >> rows & child rows, I would strongly recommend you read David Sceppa's >> book >> "Microsoft ADO.NET - Core Reference" from MS Press. As it is a good >> tutorial >> on ADO.NET as well as a good desk reference once you know ADO.NET. >> >> Hope this helps >> Jay >> >> "Ben R." <Be**@discussions.microsoft.com> wrote in message >> news:C1**********************************@microsof t.com... >> > Could someone fill me in on the difference between the following >> > three >> > DataRow methods: >> > >> > GetParentRow >> > GetParentRows >> > GetChildRows >> > >> > I'm guessing the difference between the first two is that one >> > returns >> > an >> > array while the other returns a single Row, which leads me to >> > wonder, >> > what >> > would happen if this option were used but there were more than one >> > parent >> > row. On that note, in a relationship, what defines one row as a >> > parent >> > and >> > one as a child? Is it that multiple child fields can refer to a >> > single >> > parent >> > field and from this, the engine somehow deduces which side is the >> > child >> > and >> > which is the parent? From what I see above, it's possible for a >> > table >> > to >> > have >> > multiple parents. How would this work? When you create a relation >> > between >> > tables in a dataset, if you don't specify which side is which, what >> > rules >> > are >> > used to decide? >> > >> > Thanks... >> >> >>
Sorry about that, Jay. I was looking at the overload list. Thanks for your
help...
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote: Ben, does the add method assume that the first column parameter will be the parent and the second will be the child? Why would it assume anything??? Did you read the documentation itself???
http://msdn.microsoft.com/library/de...sAddTopic2.asp
[Visual Basic] Overloads Public Overridable Function Add( _ ByVal parentColumn As DataColumn, _ ByVal childColumn As DataColumn _ ) As DataRelation [C#] public virtual DataRelation Add( DataColumn parentColumn, DataColumn childColumn );
The first column *IS* the parent, the second *IS* the child... I'm really not sure what you are reading that does not include the names of the parameters, the names of the parameters clearly indicate which is the parent & which is the child!
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:F9**********************************@microsof t.com... Hi Jay,
From the two examples you gave me, the one-to-many example is probably more straightforward, so I'll focus on that. In a customers / orders example, it's intuitively clear to me that in a relationship between the two, the customers table is the parent and the orders table is the child. To me, I assume this because for one customer, there can be multiple orders. I've been looking for a formal definition of the two, but unsuccessfully. I guess what I'm trying to gather is, in this circumstance, when you create and add the relationship between customers and orders, does the add method assume that the first column parameter will be the parent and the second will be the child? Is there something within the relationship to mark the two tables, one as parent and one as child, or is it more of an intrinsic quality that is merely implied based on the circumstance (one to many, in this case)? Otherwise, might you decide which table fills which role and get behavioural differences? I subscribe to books24x7 and was looking through the book you recommended. There's some good stuff, but not too much on comparing the GetChildRows and GetParentRows methods. Thanks for the Clarification, Jay...
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote:
Ben, For a 1 to Many relationship it definitely makes a difference.
Consider you have 2 tables: Orders & Order Details.
Which table would you expect to be the Parent?
Which table would you expect to be the Child?
For a Many to Many relationship it physically doesn't make a difference, however it may logically make a difference.
The following thread has an example of creating 2 tables that have a Many to Many relationship & use of GetParentRows. Hopefully there is enough there to give you ideas...
http://groups-beta.google.com/group/...2f4a68079a57a8
If the link is broke, search groups.google.com for "Adding a column to a dataset" from about 24 June 2004 in the microsoft.public.dotnet.languages.vb newsgroup.
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:B3**********************************@microsof t.com... > Thanks for your reply, Jay. I think I'll grab a copy of that book. From > what > I see, this is the definition of the "add" method for adding a new > datarelation: > > Creates a DataRelation with a specified parent and child column, and > adds > it > to the collection. > > Supported by the .NET Compact Framework. > > [Visual Basic] Overloads Public Overridable Function Add(DataColumn, > DataColumn) As DataRelation > [C#] public virtual DataRelation Add(DataColumn, DataColumn); > > It looks like the first column passed in will serve as the parent and > the > second will serve as the child. Is this accurate? If so, does it make a > difference which one will be parent and which will be child? I was > under > the > impression that the child references data in the parent, but I could be > mistaken. I don't see why it should matter if you use GetChildRows or > GetParentRows becausefi you've got a starting point (a datarow) and a > direction to go in (a datarelation), there's really no ambiguity, so > why > do > you have to chose between these two choices? > > -Ben > > "Jay B. Harlow [MVP - Outlook]" wrote: > >> Ben, >> The parent & child is defined when you define the DataRelation object >> either >> in code or via an XSD. >> >> All three functions expect a DataRelation (either name or actual >> object) >> to >> determine which relationship to resolve. >> >> For a complete explanation of advanced features of Datasets, such as >> parent >> rows & child rows, I would strongly recommend you read David Sceppa's >> book >> "Microsoft ADO.NET - Core Reference" from MS Press. As it is a good >> tutorial >> on ADO.NET as well as a good desk reference once you know ADO.NET. >> >> Hope this helps >> Jay >> >> "Ben R." <Be**@discussions.microsoft.com> wrote in message >> news:C1**********************************@microsof t.com... >> > Could someone fill me in on the difference between the following >> > three >> > DataRow methods: >> > >> > GetParentRow >> > GetParentRows >> > GetChildRows >> > >> > I'm guessing the difference between the first two is that one >> > returns >> > an >> > array while the other returns a single Row, which leads me to >> > wonder, >> > what >> > would happen if this option were used but there were more than one >> > parent >> > row. On that note, in a relationship, what defines one row as a >> > parent >> > and >> > one as a child? Is it that multiple child fields can refer to a >> > single >> > parent >> > field and from this, the engine somehow deduces which side is the >> > child >> > and >> > which is the parent? From what I see above, it's possible for a >> > table >> > to >> > have >> > multiple parents. How would this work? When you create a relation >> > between >> > tables in a dataset, if you don't specify which side is which, what >> > rules >> > are >> > used to decide? >> > >> > Thanks... >> >> >>
Ben,
No problem.
Unfortunately the overload list is too high of detail, you need to "zoom" in
to each specific function for the actual details...
Hope this helps
Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message
news:57**********************************@microsof t.com... Sorry about that, Jay. I was looking at the overload list. Thanks for your help...
-Ben
"Jay B. Harlow [MVP - Outlook]" wrote:
Ben, > does the add method assume that the first > column parameter will be the parent and the second will be the child? Why would it assume anything??? Did you read the documentation itself???
http://msdn.microsoft.com/library/de...sAddTopic2.asp
[Visual Basic] Overloads Public Overridable Function Add( _ ByVal parentColumn As DataColumn, _ ByVal childColumn As DataColumn _ ) As DataRelation [C#] public virtual DataRelation Add( DataColumn parentColumn, DataColumn childColumn );
The first column *IS* the parent, the second *IS* the child... I'm really not sure what you are reading that does not include the names of the parameters, the names of the parameters clearly indicate which is the parent & which is the child!
Hope this helps Jay
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:F9**********************************@microsof t.com... > Hi Jay, > > From the two examples you gave me, the one-to-many example is probably > more > straightforward, so I'll focus on that. In a customers / orders > example, > it's > intuitively clear to me that in a relationship between the two, the > customers > table is the parent and the orders table is the child. To me, I assume > this > because for one customer, there can be multiple orders. I've been > looking > for > a formal definition of the two, but unsuccessfully. I guess what I'm > trying > to gather is, in this circumstance, when you create and add the > relationship > between customers and orders, does the add method assume that the first > column parameter will be the parent and the second will be the child? > Is > there something within the relationship to mark the two tables, one as > parent > and one as child, or is it more of an intrinsic quality that is merely > implied based on the circumstance (one to many, in this case)? > Otherwise, > might you decide which table fills which role and get behavioural > differences? I subscribe to books24x7 and was looking through the book > you > recommended. There's some good stuff, but not too much on comparing the > GetChildRows and GetParentRows methods. Thanks for the Clarification, > Jay... > > -Ben > > "Jay B. Harlow [MVP - Outlook]" wrote: > >> Ben, >> For a 1 to Many relationship it definitely makes a difference. >> >> Consider you have 2 tables: Orders & Order Details. >> >> Which table would you expect to be the Parent? >> >> Which table would you expect to be the Child? >> >> >> For a Many to Many relationship it physically doesn't make a >> difference, >> however it may logically make a difference. >> >> The following thread has an example of creating 2 tables that have a >> Many >> to >> Many relationship & use of GetParentRows. Hopefully there is enough >> there >> to >> give you ideas... >> >> http://groups-beta.google.com/group/...2f4a68079a57a8 >> >> If the link is broke, search groups.google.com for "Adding a column to >> a >> dataset" from about 24 June 2004 in the >> microsoft.public.dotnet.languages.vb >> newsgroup. >> >> Hope this helps >> Jay >> >> "Ben R." <Be**@discussions.microsoft.com> wrote in message >> news:B3**********************************@microsof t.com... >> > Thanks for your reply, Jay. I think I'll grab a copy of that book. >> > From >> > what >> > I see, this is the definition of the "add" method for adding a new >> > datarelation: >> > >> > Creates a DataRelation with a specified parent and child column, and >> > adds >> > it >> > to the collection. >> > >> > Supported by the .NET Compact Framework. >> > >> > [Visual Basic] Overloads Public Overridable Function Add(DataColumn, >> > DataColumn) As DataRelation >> > [C#] public virtual DataRelation Add(DataColumn, DataColumn); >> > >> > It looks like the first column passed in will serve as the parent >> > and >> > the >> > second will serve as the child. Is this accurate? If so, does it >> > make a >> > difference which one will be parent and which will be child? I was >> > under >> > the >> > impression that the child references data in the parent, but I could >> > be >> > mistaken. I don't see why it should matter if you use GetChildRows >> > or >> > GetParentRows becausefi you've got a starting point (a datarow) and >> > a >> > direction to go in (a datarelation), there's really no ambiguity, so >> > why >> > do >> > you have to chose between these two choices? >> > >> > -Ben >> > >> > "Jay B. Harlow [MVP - Outlook]" wrote: >> > >> >> Ben, >> >> The parent & child is defined when you define the DataRelation >> >> object >> >> either >> >> in code or via an XSD. >> >> >> >> All three functions expect a DataRelation (either name or actual >> >> object) >> >> to >> >> determine which relationship to resolve. >> >> >> >> For a complete explanation of advanced features of Datasets, such >> >> as >> >> parent >> >> rows & child rows, I would strongly recommend you read David >> >> Sceppa's >> >> book >> >> "Microsoft ADO.NET - Core Reference" from MS Press. As it is a good >> >> tutorial >> >> on ADO.NET as well as a good desk reference once you know ADO.NET. >> >> >> >> Hope this helps >> >> Jay >> >> >> >> "Ben R." <Be**@discussions.microsoft.com> wrote in message >> >> news:C1**********************************@microsof t.com... >> >> > Could someone fill me in on the difference between the following >> >> > three >> >> > DataRow methods: >> >> > >> >> > GetParentRow >> >> > GetParentRows >> >> > GetChildRows >> >> > >> >> > I'm guessing the difference between the first two is that one >> >> > returns >> >> > an >> >> > array while the other returns a single Row, which leads me to >> >> > wonder, >> >> > what >> >> > would happen if this option were used but there were more than >> >> > one >> >> > parent >> >> > row. On that note, in a relationship, what defines one row as a >> >> > parent >> >> > and >> >> > one as a child? Is it that multiple child fields can refer to a >> >> > single >> >> > parent >> >> > field and from this, the engine somehow deduces which side is the >> >> > child >> >> > and >> >> > which is the parent? From what I see above, it's possible for a >> >> > table >> >> > to >> >> > have >> >> > multiple parents. How would this work? When you create a relation >> >> > between >> >> > tables in a dataset, if you don't specify which side is which, >> >> > what >> >> > rules >> >> > are >> >> > used to decide? >> >> > >> >> > Thanks... >> >> >> >> >> >> >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kevin |
last post by:
Hi All
this is going to be a lengthy questions do please bear
with me....
I have a database that has three tables - Employees,
ShiftHeader,ShiftDetails
Now the employees table holds the...
|
by: Darren Clark |
last post by:
I am trying to understand typed datasets more.... and i am stuck on a little problem
I have created a type dataset called "News" this consists of 2 tables. NewsTable and NewsTypes.
the news has...
|
by: Marty McFly |
last post by:
Greetings,
I'm trying to let my users dynamically filter records from a table that
relate to other tables.
RELATIONSHIPS:
. = .
. = .
There is a Many-to-Many relationship between...
|
by: Geoff Jones |
last post by:
Hi
Can anybody help me with the following, hopefully simple, question?
I have a table which I've connected to a dataset. I wish to add a new column
to the beginning of the table
and to fill...
|
by: Geoff Jones |
last post by:
Hi
I have question regarding times and dates in a datatable.
I have one table with one column having the date e.g.03/09/04, and another
column other the time 08:03:05. The other table has one...
|
by: Ben R. |
last post by:
Could someone fill me in on the difference between the following three
DataRow methods:
GetParentRow
GetParentRows
GetChildRows
I'm guessing the difference between the first two is that one...
|
by: Ronald S. Cook |
last post by:
Let's say I have 2 ADO.NET DataTables (tblAuthor and tblBook) within an
ADO.NET DataSet (dstPublish).
tblAuthor has DataColumns AuthorID and AuthorName, tblBook has DataColumns
BookID,...
|
by: delusion7 |
last post by:
I'm really lost right now, I can't figure out how to pass to values from a table back to the presentationTier. I am searching by the value selected in the parent(carSize) using a comboBox and passing...
|
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= |
last post by:
Hi all
I have a DataSet with 2 tables.
Now I want to select data like a INNER JOIN from these tables.
In SQL Syntax I would write:
SELECT *
FROM table1 t1
INNER JOIN table2 t2
ON t1.f1 =...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |