数据源和实体框架6.1.1出现问题 [英] Issue with data sources and entity framework 6.1.1

查看:62
本文介绍了数据源和实体框架6.1.1出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个Windows窗体应用程序,正在使用Visual Studio 2013中的实体框架进行开发.当我将实体上下文中的数据源添加到VS2013中的数据源窗口时,我无法进行拖放操作.将数据源放到我的表单上.

I have a windows form application that I'm developing using the Entity Framework in Visual studio 2013. When I add a data source from my entity context to the data sources window in VS2013 I and unable to drag & drop the data source onto my form.

如果我通过向表单添加绑定源控件来添加数据源并设置数据源属性,那么我只能导航到父实体.我无法绑定到任何子实体,即使我在绑定源控件上设置了数据源 手动输入代码.

If I add a data source by adding a binding source control to the form and set the data source property I can only navigate to the parent entity. I am unable to bind to any of the child entities, even if I set the data source on the binding source control manually in code.

如果我将linq更改为Sql上下文,则一切正常.

If I change to linq to Sql context everything work fine.

能否请您告诉我如何解决此问题

Can you tell me how to resolve this issue please

致谢

尼尔

推荐答案

edmx设计器视图的屏幕快照可能有助于我们提供解决方案.请发布一个屏幕截图.
A screen shot of the edmx designer view might help us to provide solution. Please post the a screen shot.


这篇关于数据源和实体框架6.1.1出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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