ADO.NET

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I have never discovered when a DataSet will contains several DataTable.

Can somebode explain when a DataSet will contain several DataTable.

For example when using the Fill method for dataAdapter you will
always get a single TableAdapter.

//Tony
 
Tony Johansson said:
I have never discovered when a DataSet will contains several DataTable.

Can somebode explain when a DataSet will contain several DataTable.

For example when using the Fill method for dataAdapter you will
always get a single TableAdapter.

If you create two DataAdapters and use the Fill method of both of them on
THE SAME DataSet, you will get the two DataTables added to the DataSet.
If both tables are "connected" (e.g., they are linked by a foreign Key),
you can then add DataRelations and/or ForeignKeyConstraints to the DataSet
to allow navigation between both DataTables.
 

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

Back
Top