在移动到另一个项目类型化的DataSet无法识别 [英] Typed dataset not recognized when moved to another project

查看:198
本文介绍了在移动到另一个项目类型化的DataSet无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感动从一个项目类型化的DataSet到一个ASP Web应用程序项目。我把类型化数据集到现有的目录之一,因为它是在previous网站的APP_ code目录中却看不到创造这个项目asp.net文件夹选项。

I moved a typed dataset from one project to an ASP Web Application project. I put the typed dataset into one of the existing directories as it was in the App_Code directory of the previous site but don't see the option to create that asp.net folder in this project.

现在,当我尝试实例化类型化数据集,编译器说,类型或命名空间名称''找不到(是否缺少using指令或程序集引用?)。

Now, when I try to instantiate the typed dataset, the compiler says 'The type or namespace name '' could not be found (are you missing a using directive or an assembly reference?)'.

思考?

推荐答案

您可能需要重新根的数据集。当您移动的.xsd,你只移动DataSet的XML布局。

You may need to re-gen the DataSet. When you move the .xsd, you've only moved the xml layout of the DataSet.

删除任何产生code文件,打开XSD,移动的东西,然后将其保存。保存操作调用发电机。或者你可以在.xsd文件右键单击并直接调用生成器。

Delete any generated code file, open the xsd, move something, and then save it. The save operation calls the generator. Or you can right-click on the .xsd file and call the generator directly.

这篇关于在移动到另一个项目类型化的DataSet无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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