C#数据集错误? Visual Studio 2010 [英] C# Dataset bug? Visual Studio 2010

查看:94
本文介绍了C#数据集错误? Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开解决方案时,数据集可以正常工作,看起来像这样.

http://bayimg.com/eaJimAadI [ ^ ]

我关闭并打开数据集后,它看起来像这样.并给我错误消息不允许对此数据集进行编辑".

http://bayimg.com/baJiFAADi [ ^ ]

还有一个:
http://bayimg.com/hAjkJAaDi [ ^ ]

我试过了.

*已安装SP1,带有SQL Server系统clr
* Devnev具有不同的参数
*安装''Microsoft SQL Server系统CLR类型''

此解决方案在我的同事计算机上也有相同的错误.

帮助!

When i open my solution, the dataset works fine and looks like this.

http://bayimg.com/eaJimAadI[^]

After i close and open the dataset it looks like this. And gives my the error message "Editing is not allowed for this Dataset".

http://bayimg.com/baJiFAADi[^]

And one more:
http://bayimg.com/hAjkJAaDi[^]

I have tried.

* Installed SP1, with SQL server system clr
* Devnev with different arguments
* Install the ''Microsoft SQL Server System CLR Types ''

This solution also has the same bug on my coworkers computer.

Help!

推荐答案

修复链接

MS Visual Studio-数据集问题-不允许对此数据集进行编辑 [不允许对TableAdapter进行编辑 [ ^ ]
Fix links

MS Visual Studio - DataSet Question - Editing is not allowed for this DataSet[^]
TableAdapter Editing not allowed[^]


好.这很愚蠢.

我在数据集中发疯,并尝试了所有方法.用*.*打开,删除一些文件,运行自定义工具等.

当我尝试去更改随机表的随机字段名称时,请保存.一切都很好.我现在可以访问我的数据集了


嗯.当我打开解决方案时,它仍然会按水平顺序弹出所有排列的内容,当我关闭并打开数据集时,它看起来又显得混乱了.但是我至少可以移动它们.


这也是在数据集中自动排列项目的好方法:
也许回答这个问题太晚了...

我执行了以下步骤,并且有效:

1-在解决方案资源管理器中的.xsd文件下,找到.xss文件并将其删除.

2-在解决方案资源管理器中,右键单击您的数据集,然后选择运行自定义工具"."



http://social.msdn.microsoft.com /Forums/zh-CN/vstsdb/thread/52128bfd-8ade-40b7-b0a5-8b00cb4040ec/ [
Ok. This is stupid.

I went berserk in the dataset, and tryed everything. Open with*.*, Delete some files, run custom tool etc.

And when i tried to go and change a random field name of a random table, then save. It all worked out great. I now have access to my dataset


Hmm.. It still pops up all lined up horisontenally when i open the solution, and when i close and open dataset it looks all messy again. But i can move them at least.


Also this was a great way to auto arrange items in dataset:
"Hi, Maybe its so late for answering this question...

I did the following steps and it works:

1- Under .xsd file in solution explorer, find .xss file and delete it.

2- In solution explorer, right click on your dataset and choose Run Custom Tool."



http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/52128bfd-8ade-40b7-b0a5-8b00cb4040ec/[^]


这篇关于C#数据集错误? Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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