无法创建/升级模型。 [英] Can't create/upgrade a model.

查看:74
本文介绍了无法创建/升级模型。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一份合作,每当我需要更新模型时,我要求他在他的电脑上生成,然后我更新我的项目。这真让我心烦意乱。如何一劳永逸地解决这个问题?


如果我尝试更新模型,则出现下一个窗口(见图),单击"下一步"时没有其他任何事情发生。




以下是我尝试从模型生成数据库时从Visual Studio 2015获得的消息:



---------------------------
$
Microsoft Visual Studio

---- -----------------------
$
处理模板'C:\Program Files(x86)时遇到以下错误\\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen \SSDLToSQL10.tt:

解决方案

< entityFramework> 
<! - ... - >
< providers>
< provider invariantName =" MySql.Data.MySqlClient"
type =" MySql.Data.MySqlClient.MySqlProviderServices,MySql.Data.Entity.EF6" />
< / providers>
< / entityFramework>

你必须发现为什么当你的同事从他们的机器上建立模型的时候知道上面的向导那个 提供程序是已知的,从机器上执行它时不知道。


最好,您可以从计算机上的项目中删除该模型,并尝试从头开始重新创建模型。 / p>


I have a co-work and everytime I need a model to be updated I ask him to generate at his computer and then I update my Project. It is really upsetting me. How can I resolve this once and for all?

If I try to update the model, appears the next window (see image) and nothing else happens when I click NEXT.

Here is the messagem I got from Visual Studio 2015 when I try to generate the database from the model:

---------------------------
Microsoft Visual Studio
---------------------------
Encountered the following errors while processing the template 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToSQL10.tt:

解决方案

<entityFramework>
  <!-- ... -->
  <providers>
    <provider invariantName="MySql.Data.MySqlClient"
              type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
  </providers>
</entityFramework>

You have to discover why the above is known when your coworker from their machine when building the model with the wizard that the  provider is known, and it is not known when doing it from your machine.

At best, you could delete the model from the project on your machine and try recreating the model from scratch.


这篇关于无法创建/升级模型。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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