缺少显示/添加数据源 [英] Missing show/Add Data Source

查看:133
本文介绍了缺少显示/添加数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何帮助将AP preciated,

Any help will be appreciated,

我使用Visual Studio 2010,目前我正在在ASP.net MVC3的项目。在这个项目中我的.edmx数据集,并希望使用作出.rdlc报告。所以fnally我无法在报表设计的数据菜单显示的数据源。哪里不对?什么是可能的解决方案?

I am using Visual studio 2010 and currently I am making a project in ASP.net mvc3. In this project I have .edmx data sets and want to use that for making .rdlc report. So fnally I couldn't get the show data source in the data menu of the report design. What is wrong? And what is the possible solution?

推荐答案

我去了,虽然比你同样的问题,并与可能不是最好的选择一个解决方案来了,但它的工作。

I went though the same problem than you and came up with a solution that may not be the best choice, but it's working.

首先,它会出现,你不能在MVC项目中创建数据源。我不知道其中的原因,但我认为这是联系在一起的事实,它必须包含在应用程序中的数据库(只是胡乱猜测)一个唯一的连接。

First, it appear that you can't create DataSources in a MVC project. I don't know the reason for that, but I think it's linked to the fact that it must contain an unique connection in your application to a database (just a wild guess).

总之,我们来到这里是我们创建的MVC项目相同的解决方案的另一个项目,并创建了解决方案,我们的数据源并基于这些数据源,在这个新的项目报告。

Anyway, the solution we came up here was that we created another project in the same solution of the MVC project, and created our Data Sources and Reports that were based on those data sources, in this new project.

我知道这是不是一个pretty的解决方案,但它确实的伎俩我们。

I know it's not a pretty solution, but it did the trick for us.

这篇关于缺少显示/添加数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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