VS2012的数据源工具箱未显示我的实体模型 [英] Data sources toolbox for VS2012 does not display my entity model

查看:135
本文介绍了VS2012的数据源工具箱未显示我的实体模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从数据源工具箱本身或通过添加实体模型添加实体模型之后,它不会显示在数据源工具箱中,因此我无法获得这种简单的拖放功能。

After adding an entity model either from the datasources toolbox itself or by adding it => "add" => "new item" it does not show up in the datasources toolbox and therefor i dont get that easy drop and drag functionality.

如果我添加一个数据集,它可以工作,但是这是一种较旧的技术(不是吗?),我当前项目中的所有内容都是实体模型,并且要更改为数据集(仅如果我添加 xmlns:yourAlias = clr-namespace:WpfApplication3 )将会..我不认为最佳实践和浪费时间。

If I add a dataset it works but that is an older technology (is it not?) everything in my current project are entity models and to change to datasets (which only works if I add xmlns:yourAlias="clr-namespace:WpfApplication3") would be .. I don't think best practice and a waste of time.

我已经在VS 2010中重新创建了添加实体模型的相同过程,并且它的工作效率为100%,在这里我能够简单地从dataSource工具箱中拖放

I have recreated this same process of adding a entity model in VS 2010 and it works 100%, where i have the ability to simply drop and drag from the dataSource toolbox

也许生病了,只是等待VS SP1,然后再将其用于客户项目。 :(

Maybe ill just wait for VS SP1 before working with it for client projects. :(

//编辑

如果我添加ADO.net实体VS2010中的模型,然后在2012年加载项目,然后在dataSource工具箱中加载很好。这是一个答案,但不是理想的解决方法。

If I add the ADO.net Entity model in VS2010 and then load the project in 2012 it loads fine in the dataSource toolbox. This is an answer but not an ideal work around.

推荐答案

在从事一个项目时,我最近遇到了同样的问题,花了我大约两天的大量研究时间,但我想我终于找到了它:

While working on a project I recently faced the same problem. It took me about two days of extensive research but I think I've finally found it:

http://msdn.microsoft.com/en-us/data/jj556581

至少对我来说,它可以解决问题。请告诉我它是否对您有帮助。

At least for me it solved the problem. Please let me know if it helped you..

这篇关于VS2012的数据源工具箱未显示我的实体模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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