0

我们正在开发一个 MVC 应用程序,我添加了连接字符串并生成了数据模型。当我从 .edmx 文件中的数据库更新模型时,它会更新 web.config 文件并在 TFS 中检查它。当其他人从 TFS 获取最新版本时,他们看到了连接,但是当他们转到 .edmx 文件时,它已经从数据库中更新模型变灰了?有没有什么办法解决这一问题?

从数据库更新模型

4

1 回答 1

0

First, make sure your colleagues are opening the project which in source control in VS, not the local one.

Another thing is going into the workspace and change the local path not containing '#' character. More detail info about this, please take a look at this thread: Entity Framework Unable to refresh database tables under TFS 2010

于 2017-04-10T04:39:30.590 回答