As you will read about in Chapter 15, ADO.NET is a complete reworking of Microsoft's Active Data Objects (ADO) data access component. This latest version was designed to natively use XML to describe and communicate data where past versions were only able to translate their contents to XML or vice versa. The ADO.NET DataSet, which is the main object you will work with when manipulating your data, is capable of reading and writing not only XML, but XML schemas as well. Table 14.1 lists the DataSet methods you can use to work with XML using ADO.NET. In Chapter 5, you learned about the many tools found within the System.Xml namespace to work with XML messages, but you should be aware that ADO.NET DataSets provide another powerful way to work with your data.

Table 14.1: AI ilmihii 't II.




Fills a DataSet with the contents of an XML message


Dumps the contents of a DataSet to an XML file


Reads a schema file into the DataSet and uses that schema to define that DataSet's structure


Creates a schema file that describes the DataSet's structure

ADO.NET also uses XML to serialize the contents of a DataSet and transmit that data from one point to another. Past versions of ADO used COM interfaces to serialize data, which worked well until that data ran into a firewall that did not permit COM to pass through. XML is text-based and can be passed through a firewall using SOAP messaging via the same port that HTML Web pages are allowed to pass through. This gives ADO.NET developers the ability to move their DataSets beyond the firewall and the corporate network.

0 0

Post a comment