Microsoft® .NET Compact Framework (Core Reference)
by Andy Wigley, Stephen Wheelwright, Robert Burbidge, Rory MacLoed, Mark Sutton
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" ...
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