在 Visual Studio 2015 RC 中无法从 MySQL 数据库更新 EntityFramework 模型

Unable to update EntityFramework models from MySQL database in Visual Studio 2015 RC

几个月前,我的组织从 Visual Studio 2013 升级到 Visual Studio 2015 RC,我们现在才尝试更新一些现有的“db-first”EntityFramework来自我们 MySQL 数据库的模型。这样做时,我们收到以下错误。

An exception of type 'System.ArgumentException' occurred while attempting to update from the database. The exception message is: 'Unable to convert runtime connection string to its design-time equivalent. The libraries required to enable Visual Studio to communicate with the database for design purposes (DDEX provider) are not installed for provider 'MySql.Data.MySqlClient'.

从 2013 年 11 月开始 this result 快速搜索此错误(特别是参考 VS 2013)...

Apparently MySql and Visual Studio 2013 don't work together yet.

Here is a link on the MySql forums: http://forums.mysql.com/read.php?174,594798,600466#msg-600466

You'll probably need to wait for the next release of the MySql connector.

这是否意味着这可能是一个类似的问题,我们只需要等到与 VS 2015 兼容的新 MySql.Data 客户端可用后再解决?或者是否有可能是其他原因造成的(可能是 VS 2015 RC 中的错误)?

我们使用的是 Entity Framework (6.1.3)、MySql.Data (6.9.6) 和 MySql.Data.Entity (6.9.6) 的最新稳定版本。

特别想知道是否有其他人偶然发现了这个问题,特别是 VS 2015 RC。

能否请您将 VS 2015 从 RC 更新到 RTM,通过 运行 以下命令更新 nuget 包:

更新包

这将在 VS 2015 中获取所有最新的稳定 nuget 包。

如果这能解决您的问题,请告诉我。

对我有用的是更新 visual studio 插件,可在此处获取: http://dev.mysql.com/downloads/windows/visualstudio/

就我而言,我在 Mysql 安装后立即安装了 Visual Studio。因此 Mysql Visual Studio 组件未安装。

要解决这个问题,只需打开 MySQL for VS install 并选择“更改”

然后检查目标 Visual Stadio 版本的组件

我的声誉不够高,无法发表评论,但这可能会对最终出现在该页面上的人有所帮助。我的情况类似于 neustart47,但是我尝试通过 mysql 安装程序 - 社区安装组件,但失败了,抱怨说没有安装 VS(或类似的东西),事实确实如此。因此,请确保使用独立安装程序而不是 mysql 社区安装程序。为什么这甚至是一个问题,我不知道。