我使用 .
I use the MySQL Connector/Net to connect to my database by referencing the assembly (MySql.Data.dll) and passing in a connection string to MySqlConnection
. I like that because I don't have to install anything.
Is there some way to "Choose Data Source" in Visual Studio 2010 without installing something?
How can I get a MySQL option (localhost) to show up on one of these lists? Or do I have to install something?
(I don't want to use ODBC btw)
"Add Connection" from Server Explorer:
Entity Data Model Wizard:
Visual Studio requires that DDEX Providers (Data Designer Extensibility) be registered by adding certain entries in the Windows Registry during installation (HKLM\SOFTWARE\Microsoft\VisualStudio\{version}\DataProviders
) . See DDEX Provider Registration in MSDN for more details.
这篇关于如何在 Visual Studio 中连接到 MySQL 数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!