使用数据库部署项目 [英] Deployment of project with Database

查看:91
本文介绍了使用数据库部署项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在用C#创建一个Windows应用程序,该应用程序将Access 2007用作数据库和.net 4.0框架.
当我使用数据库部署项目并在客户端计算机上运行它时,我的应用程序正在从数据库中检索数据,但是当我对数据进行更改时,这些更改将不会反映在数据库中,在后面的代码中我已给出了用于更新和插入的代码数据,并且在Visual Studio中工作正常,但在部署和安装后无法正常运行


有什么问题?

请告诉我

Hi,

I am creating a windows application in C# which uses access 2007 as database and .net 4.0 framework.
when i deploy my project with database and run it on client machine, my application is retrieve data from database but when i make changes to data then those changes won''t reflect in database ,in code behind i have given code for update and insert data and it is working fine in visual studio but not after deployment and installation


what is the problem ?

please tell me

推荐答案

如果您在项目中使用Datagridview,请不要忘记
if you use Datagridview in your project don''t forget
DataBind()

属性进行刷新数据库中的字段
祝你好运

attribute to refresh the fields in database
good luck


这篇关于使用数据库部署项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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