请给我可以让手机 wp8 运行我由 Wp8 和 VS.net 2013 和 SQL Server CE 3.5 编写的应用程序的程序链接。
请给我需要在手机上安装的软件的链接。
请给我可以让手机 wp8 运行我由 Wp8 和 VS.net 2013 和 SQL Server CE 3.5 编写的应用程序的程序链接。
请给我需要在手机上安装的软件的链接。
Windows Phone 上不明确支持 SQL Server CE。不过,基于 Silverlight 的应用程序可以使用 LINQ-to-SQL。请参阅Windows Phone 的本地数据库。
最后我找到了我的问题的答案:
**基于私有文件的部署(将 SQL Server Compact DLL 作为项目的一部分进行部署)
***用户不需要管理凭据即可安装
应用程序。
***SQL Server Compact 不会由 Microsoft Update 提供服务。也可以使用***ClickOnce 部署。
使用基于私有文件的部署来部署 SQL Server Compact 4.0 数据库
To open the Project Designer, in Solution Explorer/Database Explorer, double-click My Project if you are working on a Visual
Basic project (or Properties if you are working on a C# project).
Click the Publish tab.
Click Prerequisites and then clear the check box for SQL Server Compact.
Close the Project Designer.
Go to the directory that contains the SQL Server Compact DLLs. These are located in C:\Program Files\Microsoft SQL Server Compact
Edition\v4.0.
Select the seven SQL Server Compact DLLs and copy them:
Sqlceca40.dll
Sqlcecompact40.dll
Sqlceer40EN.dll
Sqlceme40.dll
Sqlceoledb40.dll
Sqlceqp40.dll
Sqlcese40.dll
Paste the DLLs into the project in Solution Explorer/Database Explorer.
Select all seven DLLs in Solution Explorer/Database Explorer and open the Properties window.
Set the Copy to Output Directory property to Copy if newer.
This will replace any earlier DLLs in an existing application with the newer ones if the application is updated.
Click the Show All Files button in Solution Explorer/Database Explorer.
Expand the References node.
Select System.Data.SqlServerCe.
Set the Copy Local property to True.
Because your development computer has the SqlServerCe DLLs in the global assembly cache, you must configure the application to use
the DLLs in the output directory.
Right-click the project in Solution Explorer/Database Explorer and select Publish to open the Publish Wizard.
Complete the wizard to publish the application.
The application is ready to be installed. Go to the location you
published to, and install the application to verify.