问题描述
我上周更新到 Visual Studio 2013,但无法再通过 Visual Studio 设计器(.edmx 文件)更新我的实体数据模型.
I updated to Visual Studio 2013 last week and I can no longer update my Entity Data model through the visual studio designer (.edmx file).
当我右击>从数据库更新模型
我现在收到这个错误:
When I right click > update model from database
I now receive this error:
System.ArgumentException"类型的异常发生时试图从数据库更新.异常消息是:'无法将运行时连接字符串转换为其设计时相等的.连接字符串:server=192.168.100.103;userid=xxx;password=xxx;database=xxx;persist security info=True'.
我的连接字符串如下:
<connectionStrings>
<add name="DbEntities" connectionString="metadata=res://*/Db.csdl|res://*/Db.ssdl|res://*/Db.msl;provider=MySql.Data.MySqlClient;provider connection string="server=192.168.100.103;user id=xxx;password=xxx;database=xxx;persist security info=True"" providerName="System.Data.EntityClient" />
该过程在 Visual Studio 2012 中仍然正常运行
The process still works fine in Visual Studio 2012
推荐答案
显然 MySql 和 Visual Studio 2013 还不能一起工作.
Apparently MySql and Visual Studio 2013 don't work together yet.
这是 MySql 论坛上的链接:http://forums.mysql.com/read.php?174,594798,600466#msg-600466
Here is a link on the MySql forums:http://forums.mysql.com/read.php?174,594798,600466#msg-600466
您可能需要等待 MySql 连接器的下一个版本.
You'll probably need to wait for the next release of the MySql connector.
我什至无法从 Visual Studio 2013 中的 Server Exploer 创建到 MySql DB 的连接.你能吗?
I can't even create a connection to a MySql DB from Server Exploer in Visual Studio 2013. Can you?
这篇关于无法将运行时连接字符串转换为其设计时等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!