如何在附加数据库的wpf中进行设置
问题描述:
我在sql server中创建了一个带有数据库的wpf应用程序。我想问一下如何进行设置,以便我的应用程序安装在任何PC上,并且其数据库也应该安装。
I hve made a wpf app with a database in sql server . I want to ask how can I make setup so that my app gets installed in any pc and its database should also gets installed.
答
您需要创建一个设置创建/部署数据库以及应用程序安装。
看看这些:
创建设置支持使用VS.NET创建数据库 [ ^ ]
在安装.NET应用程序期间创建数据库 [ ^ ]
部署您的应用程序和数据库 [ ^ ]
此外,请查看针对类似问题的答案此处 [ ^ ]。
You would need to create a setup that creates/deploy database along with your application install.
Have a look at these:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]
Also, look at the answers given for the similar question asked here[^].