Mysql Visual Studio 2015仅在尝试创建ADO.NET实体模型类时显示SQL Server连接
我之前创建了一个MySQL数据库实例,如中所述。我已经完成了数据库,准备在Visual Studio 2015中使用C#创建应用程序 我在stackvoverflow.com上发现的唯一相关问题是 我一直在使用以下页面中的MySQL文档:Mysql Visual Studio 2015仅在尝试创建ADO.NET实体模型类时显示SQL Server连接,mysql,visual-studio,entity-framework-6,Mysql,Visual Studio,Entity Framework 6,我之前创建了一个MySQL数据库实例,如中所述。我已经完成了数据库,准备在Visual Studio 2015中使用C#创建应用程序 我在stackvoverflow.com上发现的唯一相关问题是 我一直在使用以下页面中的MySQL文档: 连接器安装使用 连接器/ 环境是Windows 10,regedit图像显示.net framework版本。本周早些时候,我将MySQL升级到了8.0.11版。 包管理器控制台: PM>获取包 Id版本项目名称 ----------- EntityFra
- 连接器安装使用
- 连接器/
-----------
EntityFramework{6.2.0}bkInventory2App
Google.Protobuf{3.5.1}bkInventory2App
MySql.Data{8.0.11}bkInventory2App
MySql.Data.EntityFramework{8.0.11}bkInventory2App App.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<connectionStrings>
<add name="MySQLBKLibInventory" providerName="MySql.Data.MySqlClient" connectionString="SERVER=localhost;DATABASE=pacswlibinvtool;UID=root;PASSWORD=******;" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, EntityFramework"/>
<providers>
<provider invariantName="MySql.Data.MySqlClient"
type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/>
<!-- provider invariantName="System.Data.SqlClient"
type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" -->
</providers>
</entityFramework>
</configuration>
添加ADO.NET类
选择模型内容
选择数据连接
选择数据源
ODBC数据管理员
已安装的MySQL应用程序
MySQL工作台中的数据库
请注意,在倒数第二张图片中,显示已安装的MySQL应用程序的图片中,未安装MySQL for Visual Studio。安装MySQL Visual Studio纠正了此特定配置问题