DataSet.Designer.vb 未更新 [英] DataSet.Designer.vb does not get updated

查看:24
本文介绍了DataSet.Designer.vb 未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的数据库表中添加了一些字段,并在向导的帮助下将它们添加到我的数据集中.在我的代码中,我有两个查询,一个插入和更新,它们不会获取对数据集所做的更改.

I have added some fields in my database table and added them on my dataset with the help of the wizard. In my code I have two queries an insert and update which do not pick up the changes made to the dataset.

这意味着他们不知何故忘记更新.因此,当我输入:

This means that they are some somehow forgotten to get updated. Therefore, when I type this:

Me.TransactionTableAdapter.updTransaction(1,2,3) 

它使用以前的数据库版本而不是这样

it works using the previous database version instead of being like this

Me.TransactionTableAdapter.updTransaction(1,2,3,4) 

如何在不编辑 Dataset.Designer.vb 文件的情况下更新它的任何想法?

Any ideas how to get it updated without editing the Dataset.Designer.vb file?

推荐答案

这个问题与:

  • Update DataSet structure in Visual Studio to match new SQL Database Structure
  • How do I get Visual Studio 2010 to refresh my DataSet after I have updated the Database source? which provides another link to How to: Edit TableAdapters on MSDN

这篇关于DataSet.Designer.vb 未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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