c# - 无法从 Visual Studio 2015 RC 中的 MySQL 数据库更新 EntityFramework 模型

标签 c# entity-framework-6 visual-studio-2015 mysql-connector mysql.data

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

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'.

对这个错误的快速 SO 搜索产生了 this result从 2013 年 11 月开始(特别是引用 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。

最佳答案

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

关于c# - 无法从 Visual Studio 2015 RC 中的 MySQL 数据库更新 EntityFramework 模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31177871/

相关文章:

c# - 通过电子邮件地址在 ActiveDirectory 中查找用户

c# - 注销使用 DependencyProperty.RegisterAttached 创建的属性

c# - 如何修复 Asp.NET MVC 中的 "This dictionary requires a model item of type"?

c++ - easylogging++ 如何避免多重初始化

c# - 移除 HTML 中的 Style 标签

c# - C# 数组是否保证按顺序存储在内存中?

c# - Razor 语法在编译前在 View 中给出错误(无智能感知)

.net - EF 6.0.0 - 不从头开始创建数据库

c++ - std::string 类继承和繁琐的 C++ 重载解析 #2

c++ - 为什么我不能放置/插入到我的 map 中?