简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM