简体   繁体   English

Windows Phone 7.1和Windows Phone 8上的Sqlite

[英]Sqlite on both Windows Phone 7.1 and Windows Phone 8

I'm developing an app for Windows Phone 7.1(7.5) - 8 (Must work for both) , in which database connectivity is required. 我正在开发一个适用于Windows Phone 7.1(7.5) - 8的应用程序(必须适用于两者),需要数据库连接。 This Application is already realized for Iphone and Android, so I have to use there Database file to the database structure was the same for all applications. 这个应用程序已经实现了Iphone和Android,所以我必须使用数据库文件到数据库结构对于所有应用程序都是一样的。 Sqlite is used as the database . Sqlite用作数据库。 All Sqlite Clients for Windows Phone are out of date and not supported any more. 所有适用于Windows Phone的Sqlite客户端都已过期,不再受支持。

Official client is only for windows phone 8 http://www.sqlite.org/download.html and is not working with windows phone 7.1 官方客户端仅适用于Windows Phone 8 http://www.sqlite.org/download.html ,不适用于Windows Phone 7.1

Will be really helpfull if someone can give me any suggestions what i can do with this situation. 如果有人可以给我任何建议我可以对这种情况做些什么,那将真的很有帮助。

  • develop only for Windows Phone 8 and use official Sqlite Client 仅针对Windows Phone 8开发并使用官方Sqlite客户端
  • use old libriaries for sqlite and try to work with them on windows phone 8 使用旧的libriaries for sqlite并尝试在Windows Phone 8上使用它们
  • use SQL CE as the database 使用SQL CE作为数据库

(PS. : The situation is further complicated by the fact that Windows RT is not support SQL CE and only Sqlite and it makes me crazy.) (PS。:由于Windows RT不支持SQL CE而且只支持Sqlite,因此情况更加复杂,这让我很疯狂。)

I have used sqlite in my app for windows phone 7 as described in the dotnetslackers link and its working fine in WP 8 ( I tested in WP8 emulator). 我已经在我的应用程序中使用了sqlite for windows phone 7,如dotnetslackers链接所述 ,它在WP 8中工作正常(我在WP8模拟器中测试过)。

I don't see any point for saying "All Sqlite Clients for Windows Phone are out of date and not supported any more". 我没有看到任何说“用于Windows Phone的所有Sqlite客户端已过期且不再支持”的观点。 Did you try yourself ? 你试过自己吗?

Also this link says "SQLite is now supported on Windows RT, Windows 8 Metro Apps and will be supported on Windows Phone 8 for local application storage." 此链接还显示“Windows RT,Windows 8 Metro Apps现在支持SQLite,Windows Phone 8将支持本地应用程序存储。”

And here is one more link , which I didn't test. 这里还有一个链接 ,我没有测试过。

I suggest you to try the dotnetslackers link and post here if you face any problem. 如果您遇到任何问题,我建议您尝试使用dotnetslackers链接并在此处发布。 Good luck !! 祝好运 !!

Note that SQL Server Compact 4.0 does not have a release for Windows Mobile, Windows Phone or for Windows CE devices. 请注意,SQL Server Compact 4.0没有适用于Windows Mobile,Windows Phone或Windows CE设备的发行版。 http://technet.microsoft.com/en-us/library/gg592946.aspx http://technet.microsoft.com/en-us/library/gg592946.aspx

You can use SQL Server Compact 3.5 on WP 7.5, but I'm not sure if this version works on WP8. 您可以在WP 7.5上使用SQL Server Compact 3.5,但我不确定此版本是否适用于WP8。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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