What is the code for connect windows store to db
I want to connect my windows store app to a db to check login data but i dont know what is the code i should put in sign in button. Someone can help me?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Blocked AccountRank #403 · 6.2K reputationPosted Jul 5, 2013, 12:14 AM EDT
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, then of course you could connect that way. There are some other light-weight methods you could use for local storage as well using things like the Windows.Storage namespace (which is similar to Isolated Storage in .NET).
For consuming services in windows store app, you can take the reference of these articles.
Consuming Web API in Windows Store Apps
Connect Windows Store Apps to SQL Server Database Using WCF