Summary
In the previous three chapters, you learned how to work with ADO.NET and XML independently. However, there might be times when you will want to migrate one format to the other. As ADO.NET uses XML internally as its serialization mechanism, this is very easy to do and has been the subject of this chapter. The chapter began by illustrating how to serialize a DataSet containing a single DataTable—or multiple unrelated DataTable objects—to XML. From there, a second section illustrated how to perform this same task with parent/child related tables, bringing into play the DataRelation class you learned about in Chapter 7. Once you had seen how to serialize ADO.NET data to XML, you were then presented with a couple of sections that demonstrated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access