在Windows应用程序的安装文件中添加数据库 [英] Adding database in setup file of windows application

查看:104
本文介绍了在Windows应用程序的安装文件中添加数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

...
我正在Windows项目中工作.我创建了一个设置文件,但是我的项目的数据库未附加到该文件.如何在Visual Studio中将数据库添加到安装项目中?

Hi,...
I am working on a windows project. I made a set up file, but the database of my project is not attached to it. How can i add the database to the setup project in visual studio?

推荐答案

在安装.NET应用程序期间创建数据库 [部署您的应用程序和数据库 [使用应用程序部署SQL Server Compact数据库 [在VS.NET中创建安装和部署项目 [如何为寡妇创建安装程序应用程序? [ CodeProject答案 [
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]
Deploy a SQL Server Compact Database with an Application[^]
Creating Setup and Deployment Projects in VS.NET[^]
Solved QA: how to create setup for the widows application?[^]

Refer more similar CodeProject Answers[^]


在安装项目中添加用户应用程序数据文件夹,然后在它将数据库文件绑定到编译安装项目中的安装文件中.安装安装程序时,数据库文件将提取到用户应用程序文件夹中.但要确保数据库的连接字符串.
**您可以根据需要将数据库文件添加到其他文件夹中..祝您有美好的一天.
add user application data folder in setup project then add your database file in it, the database file is bind into setup file on compiling setup project. when you install your setup, database file will extracted into user application folder. but ensure about the connection string of database.
** you can add database file in other folder, as you like.. have a nice day.


这篇关于在Windows应用程序的安装文件中添加数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆