November 2017
Intermediate to advanced
800 pages
30h 51m
English
You might want to use LINQ to XML to easily query XML files.
In the LinqWithEFCore project, add an XML file named settings.xml. Modify its contents to look like this:
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
<add key="color" value="red" />
<add key="size" value="large" />
<add key="price" value="23.99" />
</appSettings>
Back in the Program class, add the following statements to do these:
XDocument doc = XDocument.Load("settings.xml"); var appSettings = doc.Descendants("appSettings").Descendants("add").Select(node ...Read now
Unlock full access