实体框架“从数据库更新模型”不显示新表 [英] Entity Framework 'Update Model From Database' not displaying new tables

查看:107
本文介绍了实体框架“从数据库更新模型”不显示新表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用VS2010和Team Foundation 2010版本控制中的Entity Framework 4.1。架构第一代EF。 我将EF模型添加到项目中,添加一些表并提交项目。 我的同事更新项目并获得
edmx。 他可以查看设计师,但当他进入"从数据库更新模型"以添加任何内容时,它不会列出任何表格。 设计器中有表格,而表格则没有。 这些新表格不会显示添加。 
在更新向导中,"添加","刷新"或"删除"下没有表格。 看起来他没有连接到数据库,但他是。 他在服务器资源管理器中使用相同的连接名称和相同的用户名和密码。  u / p
也保存在App.Config的连接字符串中。

We are using Entity Framework 4.1 inside VS2010 and Team Foundation 2010 version control. Schema first EF generation.  I add a EF Model to the project, adding some tables and commit the project.  My coworker updates the project and gets the edmx.  He can view the designer, but when he goes to 'Update Model from Database' to add anything it does not list any tables.  There are tables that are in the designer, and tables that are not.  These new tables do not show up to add.  In the Update Wizard there are no tables under 'Add', 'Refresh' or 'Delete'.  It seems like he is not connected to the database but he is.  He is using the same connection name in Server Explorer with the same username and password.  The u/p is also saved in the connection string in the App.Config.

我在猜测我们错过了一些"重新绑定"的方法。从另一台计算机到数据库?

I am guessing we are missing some way to "rebind" to the database from a different computer?

推荐答案

hi crossleyman,

Hi crossleyman,

欢迎来到MSDN论坛。

Welcome to MSDN Forum.

请检查是否所有表格已经在设计器中,如果是,向导将在下面,没有表列表。

Please check whether all the tables have already in the designer, if yes, the wizard will like below, no tables list there.

最好的问候


这篇关于实体框架“从数据库更新模型”不显示新表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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