Hi John,
I am working on a project that uses LINQ to SQL and need to do the same backing up to an xml file concept as I did with the dataset method. Should I use the dataset.xmlwrite process again or is there a more elegant way using LINQ to SQL. So far, I have not been able to find one.
Paul
Solved!!!!
Problem Solved!!
Using dataset.writexml solved the problem because the method I was using exported the schema and the data, whereas dataset.writexml exported just the data. I still don't understand why I didn't get an error of some kind when I tried to import the data back in...
John,
I have really simplified things to help diagnose my issue. I implemented your suggestion of using dataset.readxml and it worked nicely in getting the data back in to the dataset. I can scroll through all 103 movies (3 test ones that I have had through this whole issue plus the 100 I...
Hi John and thanks for looking at this for me. The Save DB line is in the serialization code. I save the db to make sure that all changes are in the DB and then I serialize it. In the original post, I now have added jpegs of the code that are much more readable.
I don't know why the code didn't stay formatted. It was formatted correctly when I pasted it (each of the 4 times I tried) but as soon as I pressed Save, the formatting disappeared. i am working in the WYSIWYG mode and put the code between Xcode tags. I was working in Chrome but for this post, I...
Hello All,
I have a situation where I serialize data from a dataset to an xml file as a method of backup. I am trying to get the data deserialized back to the dataset.
But for some reason, I cannot get the data to persist back to the DB. I don't receive any error messages either. The first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.