如何创建.hp项目的.Exe文件有.Mdf数据库和资源文件夹(图像) [英] How Can I Create .Exe File Of Wpf Project Have .Mdf Database And Resource Folder(Images)

查看:70
本文介绍了如何创建.hp项目的.Exe文件有.Mdf数据库和资源文件夹(图像)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手...所以请帮助我



客户端项目有一些文件夹,如'imagesfolder','ImpoFolder'和'expofolder'



并且还有.mdf和.ldf数据库文件....



当我创建单个图像时使用installsheild向导不包含创建文件夹以及数据库文件....



请帮助我....我无望

请帮助

i am new for it ...so please help me

client project have some folder like 'imagesfolder', 'ImpoFolder' and 'expofolder'

and also have .mdf and .ldf database file ....

when i create single image using installsheild wizard the its not creating folder contains as well as database file ....

please help me .... i m going hopeless
please help

推荐答案

一般来说,对于图像,它应该作为虚拟目录托管在本地IIS服务器中,或者可以在应用程序安装时使用代码手动创建文件夹或者在启动应用程序时,第一次创建一个名为Images的文件夹。



来到数据库,它不能成为应用程序的一部分,您需要作为单独的备份(.bak)文件发送到客户端,并在客户端位置,您需要再次恢复它。



如果您在尝试连接数据库以进行数据库目的时没有对代码中的连接字符串进行硬编码,则可以使用配置文件来配置数据库位置。
Generally for images, it should be hosted in local IIS server as a virtual directory or can be created a folder manually using code, when the application installs or else at the time of launching the application create a folder called "Images" for very first time.

Coming to the database, it cannot be part of the application, you need to ship to the client as a separate backup (.bak) file and in the client location, you need to restore it again.

You can use config files to configure your database location, if you are not hard coding the connection string in the code behind when ever you are trying to connect to the database for db purposes.


这篇关于如何创建.hp项目的.Exe文件有.Mdf数据库和资源文件夹(图像)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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