I have a requirement to
- Save a datasource from a database query to memory so i can loop
through and update some of the items in memory. - I also need to be able to save the items in memory (from the result of item 1 above)
to anxmlfile on the hard drive. - Finally i need to be able to load the
xmlfile into memory.
Could anyone point me the easiest method of doing this. This is all done in a windows service.
FAItemsUnderControl fItemsUnderControl = new FAItemsUnderControl(ConfigurationManager.AppSettings["DatabaseConnectionString"]);
//Note the line below is for binding to a gridview which is incorrect in my requirement but illustrates the idea
GridViewItemsUnderControlReport.DataSource = fItemsUnderControl.getItemsUnderControl("systemidtbd", "ALL");
i had to declare the same list of objects on my service side