Last post Jun 08, 2008 04:27 AM by Rohland
Jun 07, 2008 04:45 AM|rony02|LINK
Hi all, i want to change the backend database from mssql to simple flat xml file. I interested to use linq to xml. I need suggestion how can i do it and is it possible to do it.
Jun 08, 2008 04:27 AM|Rohland|LINK
It is possible to do this but I would not advise it for certain scenarios. In what context are you using your database? If it is a multi-user application, then I would definately advise against using XML files as a persistance mechanism. It is of course
possible, but you could run into issues with concurrent updates / inserts / deletes.
If it is a single user / threaded application and you have a business case supporting an XML persistance mechanism, then Linq to XML could definately assist you in building an XML persistance layer.
Here are two links to articles that gently introduce users to Linq to XML:
Performing a simple search on google for "linq to xml" will provide you with further resources to get you started.
Hope this helps.