MySQL For Visual Studio 2012/2013

前端 未结 6 1752
清酒与你
清酒与你 2020-12-30 04:04

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 Enti

相关标签:
6条回答
  • 2020-12-30 04:41

    For you to see MySql provider you need both to install MySQL Connector/NET 6.7.x and MySQL for Visual Studio 1.0.2.

    Or the latest versions MySql Connector/NET 6.8.3 and MySql for Visual Studio 1.1.3.

    Bear in mind that if you install Connector/NET thru nuget, it will not register in the machine.config (so is more limited that way).

    0 讨论(0)
  • 2020-12-30 04:43

    Visual Studio 2013 Express cannot be used with MySQL for visual Studio according to the following article: http://dev.mysql.com/doc/connector-net/en/connector-net-visual-studio-install.html

    In the Requirements section the above article mention that:

    Requirements
    MySQL Connector/Net supports full versions of Visual Studio 2008 and later, although the extent of support is based on your installed versions of MySQL Connector/Net and Visual Studio:
    
    Visual Studio 2013 (***Professional edition and up only***) is supported by MySQL Connector/Net 6.8 and up with the MySQL for Visual Studio product.
    
    Visual Studio 2012 is supported by MySQL Connector/Net 6.7 with MySQL for Visual Studio, and by MySQL Connector/Net 6.6 with the older Visual Studio Plugin.
    

    Since you are using Express version, that may be the porblem.

    0 讨论(0)
  • 2020-12-30 04:47

    Strange, I have it in my Visual Studio 2012. I installed mysql-installer-web-community-5.6.15.0.msi, and selected MySql for visual Studio!enter image description here

    0 讨论(0)
  • 2020-12-30 04:48

    If someone using Visual Studio 2013 and having the same issue when using mysql with entity framework.

    Download MySQL for Visual Studio 1.2.7. and Connector/NET 6.7.5, 6.8.3 or 6.9.x.

    Which will resolve your issue.

    Make sure you have system.data and system.data.entity in your reference to the project.

    0 讨论(0)
  • 2020-12-30 04:49

    You need to download and install MySql Installer. The link is: http://dev.mysql.com/downloads/windows/installer/. For Visual Studio : http://www.mysql.com/why-mysql/windows/visualstudio/

    0 讨论(0)
  • 2020-12-30 04:50

    For Visual Studio 2013 environment, download and install MySQL for Visual Studio 1.1.1 from the link below then you will be able to see MySQL Data Provider in Data Source list.

    https://cdn.mysql.com/Downloads/MySQLInstaller/mysql-visualstudio-plugin-1.1.1.msi

    0 讨论(0)
提交回复
热议问题