Saving a DataSet Object Locally

Chapter 15 and Chapter 17 will describe storing data in a database, but this chapter will now continue by looking at how you can save a partially filled DataSet object to the local file storage of the smart device and then retrieve it again. To do so, you will use the WriteXml and ReadXml methods of the DataSet class.

Due to the limited quantity of local storage available on a smart device, persisting local data in this way has the disadvantage of being suitable only for small volumes of data. However, the advantage of storing data locally using XML is that doing so requires no connection to a network, no further components on the device or elsewhere, and no database on the device or elsewhere. So there is no "footprint" ...

Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.