O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required