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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Blocked AccountPosted Jul 5, 2013, 4:14 AM
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