1<?xml version="1.0"encoding="Utf-8"?>2<configuration>3<configSections>4<section name="EntityFramework"Type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, version=6.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089"requirepermission="false"/>5</configSections>6 7<connectionStrings>8<add name="defaultconnection"connectionstring="server=192.168.1.251; User id=root;password=; Persist Security info=true; Character Set=utf8;database=yunzhi"Providername="MySql.Data.MySqlClient"/>9</connectionStrings>Ten One<entityFramework> A<defaultconnectionfactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> -<parameters> -<parameter value="Mssqllocaldb"/> the</parameters> -</defaultConnectionFactory> -<providers> -<provider invariantname="System.Data.SqlClient"Type="System.Data.Entity.SqlServer.SqlProviderServices, Entityframework.sqlserver"/> +<provider invariantname="MySql.Data.MySqlClient"Type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, version=6.9.9.0, Culture=neutral, PUBLICKEYTOKEN=C5687FC88969C44D"></provider> -</providers> +</entityFramework> A at<system.data> -<DbProviderFactories> -<remove invariant="MySql.Data.MySqlClient"/> -<add name="MySQL Data Provider"Invariant="MySql.Data.MySqlClient"description=". Net Framework Data Provider for MySQL"Type="MySql.Data.MySqlClient.MySqlClientFactory, Mysql.data, version=6.9.9.0, Culture=neutral, publickeytoken= C5687FC88969C44D"/> -</DbProviderFactories> -</system.data> in</configuration>
Entity Framework connection to MySQL database