在EDMX中添加表时出现问题 [英] Problem in Adding Tables in EDMX

查看:190
本文介绍了在EDMX中添加表时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在使用vs2010的edmx文件中添加表,当我尝试使用文档中描述的方法添加表/视图/sp时(在模型视图或设计器中单击鼠标右键->从数据库更新模型...) ...它没有在edmx中添加任何表格..请告诉我这是什么问题..我已经遍历网络,所有教程似乎都建议使用几乎相同的方法来添加表格.请指导.

在Advance中致谢

Hi,
I want to add tables in edmx file in using vs2010 When I try to add a table/view/sp using the described method in the documentation (Right click in the model view or designer --> Update model from database...)...It doesn''t add any table in edmx..Please tell me what the problem with that..I have gone through net all the tutorials seem to be suggesting nearly the same method to add tables. Please guide.

Thanks in Advance

推荐答案

当您要添加的表或视图已经存在于模型中时,可能会发生这种情况.因此,不要使用更新向导中的add 标签 [ ADO .Net团队博客 [ ^ ]
This possibly happens when the table or view you trying to add is already exists in the model. So instead of using add tab from the Update wizard[^],use the refresh tab and see the effect. You can also check either the table or view exists in the model by opening in the model file in xml editor.

For more take a look at this ADO.Net Team Blog[^]


http://stackoverflow.com/questions/6444257/mapping-table-to-entity-实体框架 [ ^ ]
How to: Update an .edmx File when the Database Changes (Entity Data Model Tools)

OR

http://stackoverflow.com/questions/6444257/mapping-table-to-entity-entity-framework[^]


这篇关于在EDMX中添加表时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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