Entity Framework with XML Files [closed]
Solution 1:
Entity Framework itself is provider-based, and is designed to operate over a relational database. If you really wanted to, you could write your own provider for EF that reads from/writes to an xml file, but it would be a huge amount of work.
I expect you should really be looking at one of:
- LINQ-to-XML
- XML (de)serialization
- XPath/XQuery
- XSLT
Entity Framework doesn't have a natural fit in this scenario.
Solution 2:
Linq to XML isn't all that much actually. I'd go with a serializable solution instead.
Solution 3:
I like LINQ to XSD: http://linqtoxsd.codeplex.com/
It is basically LINQ to XML with some classes derived from the XSD to ensure it fits the schema...