Database to be used in Windows Phone 8 - c#

I am a new member in the field of building application in Windows Phone 8. What is/are the database local server to be used in building apps for windows phone 8 devices.
I have did some researched and found out about LINQ to SQL but I am not sure if that will be the one to be used for database connectivity. For example, MySQL to be used for web base system. is LINQ to SQL the same type as MySQL? Thanks in advance

You can Probably use SQLite database which is widely used for Android and IOS also.
Seems similar with this post
linq to sql (Local database for Windows Phone) better ? (OR) A sqlite-net version for mobile better ?? for windows phone 8 local database creation

Related

Get data from local xampp mysql-database

Im am trying to connect a local mysql database which runs on xampp with a Universal Windows Platform (UWP) Application. I couldn't find any examples or tutorials on how to archieve this. In one article i have read that this isn't even possible and only sqlite is supported. Is this true?
I have to do a work for school and one criteria is, that it must have a relational database and another is to support multi-user functionality.
I dont know if it is not possible or am I just to blind to find Informations? Sometimes it seems really hard to get to informations to windows app development.
Did someone make experiences with connecting relational databases to UWP-Apps?
UWP app can connect to any server based database behind a web service. Per my experience, Windows Store app can directly connect to MySQL. Check this. I didn't have a chance to try it on win 10 UWP.
Sqlite is the database if you want to deploy a database to the device along with your UWP app.

Migrating SQL Server CE data to Windows Phone 8.1

I'm trying to update my Windows Phone app from using Silverlight to Windows Runtime so as to use the new universal application approach.
There's a huge problem though: in Silverlight there is integrated support for SQL Server CE through System.Data.Linq. I like it very much, but apparently this code is not available in Windows Runtime. Actually, there appears to be no native support for any kind of database in WinRT, but people are happy using the sqlite-net NuGet package for this purpose.
So, even if I used sqlite-net, there's still a problem - users will already have the data in SQL Server CE format when the app is updated - how then am I going to convert the data from SQL Server CE to SQLite so that I would be able to access it in Windows Runtime?
It is not possible to do this on a device, so you must move the SQL CE database elsewhere for conversion to sqlite, and the get hold of the converted database and put it back on the device. Some kind of web service should be able to do this non-trivial task.

options for windows phone database?

Well, I am not very good with c#.net thus I am really confused about the database that I should use. I am trying to build a windows phone app that can communicate with the SQL database that I have online. I have asked some people and they have suggested me to write an API for the database so that I can generate a JSON/XML data from it and use it in my windows phone app and other way around.
So, here are some of my questions:
1) Which Database should I use for my .net website so that my windows phone app can communicate with the database as well?
2) If I have a Database then should I make an API for it, so that I can help it send JSON data to the mobile app and receive it as well or is there any better option for this?
I couldn't find a proper answer for these questions anywhere. do let me know the best options available.
Thanks in advance!
The choice of database is completely yours and depends on the type of application you want. You must never access your database on the server from an application directly. Make necessary APIs to do that for you for security reasons.
Having said that, you can look at MongoDB if you are going to work with extensive JSON since it can store, retrieve and process JSON out of the box.
Other than that, any database can be used to serialize data to JSON and send it to your app. Like for example you can use MySQL, and the database adapters will help you return the results to your app in a JSON format.
You can use any database that suites your requirements of website, it will not effect your windows phone app because windows phone will communicate with API's(Web API is the best way) so for windows phone app it is transparent.
Yes, Create Web APIs at server side and call those APIs from mobile to send/receive data in JSON format this the standard and best way to send/receive data.
I would also suggest to store your server side data in windows phone local store(using SQLite or in json files). So that if mobile is not connected to internet your app can still work in offline mode and sync data when internet connection is available.
P:S. As you are developing new windows phone application than target windows phone 8.1(windows Runtime or Universal app) instead windows pone 8 as there are new features and improvements in it. and soon all windows phone 8 devices will upgraded to windows phone 8.1

Database for Windows Phone 8.1 Silverlight

Any good recommendation of database for me to develop in the Windows Phone 8.1 Silverlight? There're SQLite, SQL Server CE 4.0. But I heard some of them still not compatible with the Windows Phone 8.1, so which database I can use for Windows Phone 8.1 Silverlight? And there're any tutorial for me to do the database for the Windows Phone 8.1 Silverlight? Anyone can help me? Please...
If you plan to update your project to universal apps, you should use SQLite because SQL Server CE is not supported in WinRT. Whereas SQLite is supported for both Windows Phone 8.1 and Windows 8.1.
Old question, but I couldn't spare my self.
Don't use sql in WP8(is it even allowed?) and client applications overall, it's bad architechture, really bad and dangerous.
Databases belongs on backends that host Webservices, like forinstance WCF with JSON and/or SOAP. It also lets the backend to the heavy db lifting.
Use Object Relation Models or Entitites for your data you get from the backend, and let the backend do all db magic independent off db type. It makes it so much easier for your client code as well, as you can just bind to these datamodels.
NHibernate is a pretty good provider, and I would reccomend you to have a look at it.
Cheers
Stian

getting data from database in windows 8 app

I am building a windows 8 app which requires me to get data from a remotely hosted server. Which API can I use to get the required data? I am using c# and xaml. I basically want to communicate with Microsoft SQL Server Analysis Services. ADOMD.NET cannot be used as windows 8 store apps donot support it.
In a Windows 8 app, we can specify for example a connection string to read out data stored in a server-side database. Not only would this be a huge security risk (imagine your connection string being on the thousands of devices where your app is downloaded!), it would also be pretty useless to have it there. WinRT has no knowledge of talking with a (remote) database. This means no ADO.NET or LINQ-To-SQL classes are in the API.
windows 8 style apps dont have out of the box functionality to contact to a database. so you need webservices to conect at a remote database.
If you have a database on a web server for which you can write an OData service, then that's an option. You can use the OData Libraries
I hope http://blogs.msdn.com/b/phaniraj/archive/2012/04/26/developing-windows-8-metro-style-applications-that-consume-odata.aspx will help you.

Categories

Resources