more about DataSet and XmlSchema

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
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
 
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
 
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.
 
Back
Top