作者:秋忆道格 | 来源:互联网 | 2023-08-07 11:43
IwouldliketocreateaEFmodelusingaMySQLdatabase.IamrunningVS2012andVS2013ona64bit
I would like to create a EF model using a MySQL database. I am running VS2012 and VS2013 on a 64 bit machine. What do I need to install to get MySQL to show up in the Entity Data Model Wizard when it's time to add a new connection ? I tried adding MySQL.Data.Entities Nuget package, but I still do not get the option in the wizard. When searching for MySQL .NET Connector, I only find 32 bit downloads. Please advise.
我想使用MySQL数据库创建一个EF模型。我在一台64位机器上运行VS2012和VS2013。当需要添加新连接时,需要安装什么程序才能让MySQL显示在实体数据模型向导中?我试着添加MySQL.Data。实体Nuget包,但我仍然没有得到向导中的选项。在搜索。net连接器时,我只找到32位的下载。请建议。
Thanks
谢谢
UPDATE:
更新:
I ran the MySQL installer again and noticed the MySQL for Visual Studio was not installed. I ran it again and get an error. Here is the end of the install details:
我再次运行MySQL安装程序,发现Visual Studio的MySQL没有安装。我再运行一次,得到一个错误。以下是安装细节:
1: File: license-zlib-net.html, Directory: C:\Program Files (x86)\MySQL\MySQL for Visual Studio 1.0.2\Documentation\Licenses for Third-Party Components\, Size: 17171 1: Action 6:09:56: ManagedDataInstall. Registering data provider in machine.config 1: Action 6:09:56: Rollback. Rolling back action: 1: Registering data provider in machine.config 1: Copying new files 1: Creating folders 1: Updating component registration 1: 1: MySQL for Visual Studio 1.0.2 2: {0D406BCC-D62A-46FB-9AB7-A7BF10FB8B31} 3: 3 1: 1: Final actions. 1: Install error
1:文件:license-zlib-net。Visual Studio 1.0.2 \ html目录:C:\Program Files (x86)\MySQL\MySQL文档为第三方组件\ \许可,大小:17171 1:行动6:09:56:ManagedDataInstall。在机器中注册数据提供程序。配置1:操作6:09:56:回滚。回滚操作:1:在机器中注册数据提供程序。配置1:复制新文件1:创建文件夹1:更新组件注册1:1:Visual Studio 1.0.2的MySQL1:安装错误
I can paste the entire contents of the details, but was hoping there is enough information. Does this offer any clues ? It almost looked like the install was having trouble modifying the machine.config files, but I changed the security on these files by adding "Everyone" to have read and write permission (temporarily).
我可以粘贴所有细节的内容,但我希望有足够的信息。这有什么线索吗?看来安装程序在修改机器时遇到了麻烦。配置文件,但是我通过添加“每个人”来修改这些文件的安全性(暂时)。
6 个解决方案