I want to create a project that needs Database but I dont want any db server have to be installed on both developer computer and clients.
我想创建一个需要数据库的项目,但我不希望任何数据库服务器都必须安装在开发人员计算机和客户端上。
How can I achieve this, which is the best way to do so?
我怎样才能做到这一点,这是最好的方法呢?
1 个解决方案
#1
1
Instead of LocalDB, use SQL Server Compact Edition. You can "bin deploy" that. Just set the references to copy local and it can run without installing anything.
而不是LocalDB,使用SQL Server Compact Edition。你可以“bin部署”那个。只需将引用设置为copy local,它就可以在不安装任何内容的情况下运行。
See also:
也可以看看:
- http://tech.aendeavors.com/2011/06/09/bin-deploy-sqlce-4-0-and-ef-4-1/
- http://tech.aendeavors.com/2011/06/09/bin-deploy-sqlce-4-0-and-ef-4-1/
You can download the binaries from the Microsoft Download site. And here is an explanation on how to create a .sdf
file. And the SQL Server CE Toolbox is a set of add-ons for Visual Studio that helps you manage SQL Server CE database.
您可以从Microsoft下载站点下载二进制文件。以下是有关如何创建.sdf文件的说明。 SQL Server CE Toolbox是Visual Studio的一组附加组件,可帮助您管理SQL Server CE数据库。
#1
1
Instead of LocalDB, use SQL Server Compact Edition. You can "bin deploy" that. Just set the references to copy local and it can run without installing anything.
而不是LocalDB,使用SQL Server Compact Edition。你可以“bin部署”那个。只需将引用设置为copy local,它就可以在不安装任何内容的情况下运行。
See also:
也可以看看:
- http://tech.aendeavors.com/2011/06/09/bin-deploy-sqlce-4-0-and-ef-4-1/
- http://tech.aendeavors.com/2011/06/09/bin-deploy-sqlce-4-0-and-ef-4-1/
You can download the binaries from the Microsoft Download site. And here is an explanation on how to create a .sdf
file. And the SQL Server CE Toolbox is a set of add-ons for Visual Studio that helps you manage SQL Server CE database.
您可以从Microsoft下载站点下载二进制文件。以下是有关如何创建.sdf文件的说明。 SQL Server CE Toolbox是Visual Studio的一组附加组件,可帮助您管理SQL Server CE数据库。