Hi Friends
Any one can help to do windows store apps using data base
1) is it possible to use any data base in windows 8 metro apps?
2) if it is no is there any other way to do data storage?
Thanks & Regards
-----------------------
Ashok Kallagunta
How to store data windows8 metro apps
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 10, 2012, 10:13 PM EDT
There is no way to directly access database in Windows 8 Metro App
But instead
You can Create WCF REST Services
And you can access those WCF Service as
WinJS.xhr({
type: "POST",
headers: { "Content-type": "application/json; charset=utf-8" },
url: URL
, data: data
}).then
(
function (result)
{
},
function (result)
{
}
);
Check this is corerct answer if it helped
Richa GargRank #228 · 10.8K reputationPosted Sep 11, 2012, 12:13 AM EDT
In Windows 8 apps their is no direct way to connect with the database. You have do this through web services, APIs and the OData Services. when we make these then we consume it in our windows 8 apps.
So it is not possible to use direct any database in your windows 8 apps, we can do this by using Api, services etc. You can see my article that is posted in the http://www.c-sharpcorner.com as,
http://www.c-sharpcorner.com/UploadFile/c25b6d/create-a-web-api-and-consume-it-in-the-windows-8-apps/
If you are satisfy with this answer then mark it as accepted.