How to create DataSet schema with Parent table containing child table

  • Thread starter donet programmer
  • Start date
D

donet programmer

I have a requirement where I need to create a dataset that consists of
a table inside a table ( a child table inside a parent table). I am not
really familiar with the data relations and not sure how to represent
this relation.

I did create a schema and it looks good on paper, but when I create a
dataset from this schema it does not allow me to write to the child
table. I am elaborate more if required.

This is what my schema looks like:

Table 1:
Row1 int
Row2 string
Row3 (Table 2) ComplexType
|
Table 2:
Row1 int
Row2 int

As can be seen, Table 2 is part of the Table 1.

Please help me out how to create this kind of relation and then
populate data through code.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top