Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
HI! Recently I am working on window mobile application and I am new one in this. Can any one help me that how to make a database in window mobile application.
thank you..........
Posted
Comments
johannesnestler 9-Aug-13 8:34am    
I can't tell if this is the "whole story" - just taking about what I found out about this Topic for myself. The prefered way would be to have the database on a server and talk to it through a service (Web, WCF) - so your app would be just a "thin client". -Yea, this was not the way to go for me, too. But then I thought about why a "complex" database doesn't make sense on a phone and went for XML-files, talked to them using the framework functions/types and Linq, stored them locally on isolated storage and synced them with apps for other (Windows) platforms via SkyDrive. No pain at all for my usecase - I abstracted away the platform specifics and used the "new" portable library Project template to implement my model and repository (Interfaces). So maybe this would be a good way for you too - but I'would also be interested in other opinions...
[Edit: Oh, I forgot about NoSql (have a look at nuget for the package - can't remember why I decided against it)
JasonMacD 9-Aug-13 8:56am    
You have 2 options for DB's in Windows Mobile apps:

1) SQL Lite:
http://code.msdn.microsoft.com/windowsapps/Sqlite-For-Windows-8-Metro-2ec7a882

2)Mobile Services (in Windows Azure):
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started/


It sucks I know, Best of luck!
Maciej Los 9-Aug-13 9:18am    
WHat have you done so far? Where are you stuck?

SQLite is my preference. You could also use a remote connection to a webService, which would offset the database load to the server. You can also merge the two options and use SQLite when a network connection is not available.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900