Question : Storing a Datatble in WPF app for future use.

I'm using a WPF app to interrogate an SQL 2008 database. The app is a dashboard style app, so updates every minute.

To save quering the database every minute (as the data will only change 24 hours). I'm think of STORING the data.

Is it possible to save the Datatable to an observablecollection? Or is it ok to save the datatable.?

Answer : Storing a Datatble in WPF app for future use.


Yes. You can save datatable.

You can use

DataTable.WriteXml

to get the datatable as xml string ans save the xml string in your storage.
Random Solutions  
 
programming4us programming4us