在VS 2017中添加ADO.NET实体数据模型并且什么也没有发生 [英] Adding ADO.NET Entity Data Model in VS 2017 and nothing happens

查看:762
本文介绍了在VS 2017中添加ADO.NET实体数据模型并且什么也没有发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio的实体数据模型向导中选择MySQL数据源并单击下一步后,该向导将关闭。怎么了?

After selecting the MySQL data source in the Entity Data Model wizard in Visual Studio and clicking on "Next", the wizard just closes. What's going wrong?


推荐答案


  • 6.9.10 = https://downloads.mysql.com/archives/c-net/ rel = nofollow noreferrer> https://downloads.mysql.com/archives/c-net/ ,因为较新8.0似乎有问题。

  • 在Package Manager控制台中安装:

    • Install old version of MySql Connector like 6.9.10 from https://downloads.mysql.com/archives/c-net/ , Because the newer 8.0 appearto have problems.
    • In Package Manager Console Install:
    • Install-Package MySQL.Data -Version 6.9.9
      Install-Package MySql.Data.Entity -Version 6.9.10
      




      • 不要忘记在web.config中添加此行

      • <system.data>
            <DbProviderFactories>
              <remove invariant="MySql.Data.MySqlClient" />
              <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.10.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
            </DbProviderFactories>
          </system.data>
        

        这篇关于在VS 2017中添加ADO.NET实体数据模型并且什么也没有发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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