gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 17:35:47 24 4
gpt4 key购买 nike

几个月前,我的组织从 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com