Database for Windows Phone 8.1 Silverlight - c#

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

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 to be used in Windows Phone 8

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

Windows Azure and Metro-style apps in Windows 8

I have atleast 5 billion ideas for a new App in Windows 8. However, most of them rely on a remote database connection.
Which is currently not possible in Metro apps. But I don't want just a work-around. Or an script that accesses an API which will access the DB and return results. So then I went to the MS forums and found a post somewhere (which I can't seem to find now) stating that I can just use Windows Azure SQL database and can connect to that one from within Windows Metro.
But I don't see any resources or documentation to back that up and I'm completely lost as to what to do.
Most apps these days, to offer any sort of personalized user experience need to communicate with the outside world and it's just impossible to do in Metro apps from what I can see.
Does anybody know if you can connect to a Windows Azure SQL DB from within a Metro style app? Any resources/Docs/Links/Samples you know of?
Thank you!
Metro apps are optimized for tablets and generally CPU-and-battery constrained devices. Directly connecting to a database and processing the results is expensive in CPU, battery AND bandwidth terms.
What's more, database protocols aren't cachable and were not meant to deal with internet latencies. Your app could waste a lot of time trying and retrying to connect to the database each time the connection quality degraded.
The best option would be to a set of WCF Data Services on top of your database and expose them to your application. It's easy to create a WCF Data Service on top of an Entity Framework model and the OData protocol used by WCF Data Services allows querying your entities using LINQ in an asynchronous manner. More complex processing can be done in the web server.
At this point Metro does not have a System.Data so there is no direct connect to the database. You would need to communicate with the database via WCF to a Web Service.
Metro does have a user settings facility but I cannot find it right now. http://msdn.microsoft.com/library/windows/apps/BR208189
The history is that the jumping off point for Metro was Silverlight. Not saying that makes sense just what I have read. It appears Microsoft wants to sandbox Metro for the Metro Store.

Categories

Resources