more about DataSet and XmlSchema

T

Tony Johansson

Hello!

Assume I create an untyped DataSet just by doing
DataSet ds = new DataSet();
Now I load an existing xml schema into this ds DataSet just by doing
ds.ReadXmlSchema(@"C:\DataSources\Northwind.xsd");
Now the ds DataSet is having a xml schema.
As the last action a load an xml file that have this xml schema by doing
ds.ReadXml(@"C:\DataSources\Northwind.xml");

My question is now the following is this dataset ds now a strongly typed
DataSet ?
What is the definition for a strongly types dataSet ?

//Tony
 
A

Arne Vajhøj

Assume I create an untyped DataSet just by doing
DataSet ds = new DataSet();
Now I load an existing xml schema into this ds DataSet just by doing
ds.ReadXmlSchema(@"C:\DataSources\Northwind.xsd");
Now the ds DataSet is having a xml schema.
As the last action a load an xml file that have this xml schema by doing
ds.ReadXml(@"C:\DataSources\Northwind.xml");

My question is now the following is this dataset ds now a strongly typed
DataSet ?
No.

What is the definition for a strongly types dataSet ?

A strongly typed DataSet is a set of classes that extend
DataSet, DataTable, DataRow etc. and instead of working
on type object and column index works on specific types
(int, string etc.) and column names.

In practice they are always generated by the wizard in
Visual Studio.

Arne
 
J

Jason Keats

Tony said:
Hello!

Assume I create an untyped DataSet just by doing
DataSet ds = new DataSet();
Now I load an existing xml schema into this ds DataSet just by doing
ds.ReadXmlSchema(@"C:\DataSources\Northwind.xsd");
Now the ds DataSet is having a xml schema.
As the last action a load an xml file that have this xml schema by doing
ds.ReadXml(@"C:\DataSources\Northwind.xml");

My question is now the following is this dataset ds now a strongly typed
DataSet ?
What is the definition for a strongly types dataSet ?

http://www.informit.com/articles/article.aspx?p=30593

Read all five pages, or buy the book.
 

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

Similar Threads

about Strongly typed DataSet 9
DataSet 1
xml and xml schema 4
Xml and DataSet 5
Dataset.WriteXml writes data in wrong order 1
serialize DataSet and use WriteXml 0
Reading XML Schema 1
Return a XmlSchema object 1

Top