Do Windows 8 Metro style application support SQL Server CE local database?

百般思念 提交于 2019-11-27 18:30:15

问题


I have built a Windows Phone Application using SQL Server CE database.

We need transplant this app to Windows 8 Metro Style.

Do Windows 8 Metro-style applications support SQL Server CE local databases?


回答1:


As already answered by ErikEJ, there is no native support for a local SQL Server CE database, but maybe this third party component SQLite is usefull for you?

Tim Heuer has wrote a blogpost about how to use SQLite in a metro style app: http://timheuer.com/blog/archive/2012/05/20/using-sqlite-in-metro-style-app.aspx

In the blogpost there is also a video with the "How to" steps to use SQLite in your app.




回答2:


No, currently Microsoft does not provide a local database for Metro applications with C# and XAML.




回答3:


Not only can you not connect to a local SQL database, you can't connect to a remote one either. Everything has to go through web services... or use SQLite.



来源:https://stackoverflow.com/questions/10909202/do-windows-8-metro-style-application-support-sql-server-ce-local-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!