On December 14th, 2011, Microsoft MVP Morten Nielsen said:
You can use HttpClient to download pretty much anything from the web.
Why don't you configure your WCF service to return data as JSON, and
use the DataContractJsonSerializer to deserialize the results?
And on September 14th, 2011, Microsoft employee Tim Heuer said:
...You cannot directly have a SQL db embedded in your app or use
something like ADO.NET. This is more of an async/services
infrastructure. So if your data was exposed via services...
Oh and forget about the System.Data namespace. It's not supported in WinRT.
On November 01, 2011, Microsoft employee Immo Landwerth wrote:
When I wrote that .NET for Metro style apps does not include database
APIs I bascically meant System.Data. This also includes
SqlConnection and SqlCommand, which you would probably need to
communicate with the remote SQL Server.
TL;DR
- You can use HttpClient to download pretty much anything from the web. Configure your WCF service to return data as JSON.
- If you're developing a XAML application, use the
DataContractJsonSerializer
class to deserialize the results.
- If you're developing an HTML5/JS application, use a Javascript library.