更改Debug文件夹的数据库 [英] Changes to data bases of Debug folder

查看:66
本文介绍了更改Debug文件夹的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


从Vb.Net运行我的应用程序时,我经历过,通过应用程序对数据库所做的任何更改仍然仅限于Bin/Debug文件夹中的数据库.因此,当我下次运行应用程序时,这些数据库将被包含我的代码文件的主文件夹中的数据库覆盖.
是否可以进行设置,以便当我对数据库进行更改时,它们可以转到我的主文件夹的数据库中,而不是调试文件夹的文件中.

谢谢
Furqan

Hi,
I have experienced when I run my application from Vb.Net, any changes made to the data base through application, remain limited to my Data bases in Bin/Debug folder. So when I run my application next time, these data bases are overwritten by the data bases from main folder that contains my code files.
Is it possible to set it so that when I make the changes to my data bases, they to go the data bases of my main folder, instead of Debug folder''s files.

Thanks
Furqan

推荐答案

您应该将数据库放置在中央,并指向它的连接字符串,以便对数据库所做的任何更改都位于中央位置.数据库永远不应有多个副本.

因此,此处的实现似乎有问题.
You should have the database located centrally with a connection string pointing to it so that anyone changes done to the database are in a central location. There should never be multiple copies of the database.

So something seems to be wrong with your implementation here.


这篇关于更改Debug文件夹的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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