Visual Studio 2015-添加新数据源 [英] Visual Studio 2015 - Add new data source
问题描述
我需要从一个自定义对象开始创建一个新的数据源.
I need to create a new data source starting from a custom object.
在Visual Studio 2015中,如此处所述,但我找不到 Project>添加新数据源
菜单项.
This seems possible in Visual Studio 2015 as stated here , but I can't find the Project > Add New Data Source
menu entry.
我也尝试过:
-
此答案但指定的菜单项在VS2015中不存在,快捷键只是展开
Debug
菜单
this answer but the stated menu entry does not exist in VS2015 and the key shortcut just expands the
Debug
menu
将VS2015更新到Update 3,从而启用所有与此问题相关的组件
updating VS2015 to Update 3 enabling all components that seemed relevant to the matter
创建自定义数据集,但是VS总是要求我进行数据库连接
creating a custom dataset, but VS always asks me for a DB connection
到目前为止,找到该对话框没有运气.有人在某处找到它吗?
So far no luck in finding that dialog. Did anyone find it somewhere?
提前感谢您的每条建议!
Thanks in advance for every advice!
推荐答案
我找到了解决方案.
I found the solution in this answer.
您根本无法将对象数据源添加到Web类型的项目中.相反,您必须创建一个中间类库项目,在其中创建数据源,然后在Web项目中引用该新项目.
You simply cannot add an object data source to web-type projects. Instead, you must create an intermediate class library project in which you create the data source and then reference this new project in the web project.
希望这会有所帮助!
这篇关于Visual Studio 2015-添加新数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!