1.web.config
<configsections> <!--for more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 - < Sectionname= "EntityFramework"type= "System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, version=6.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089 "requirepermission= "false" /> </configsections> <!--<System.Data> <dbproviderfactories> <!--do not set this will prompt you not to find a provider - <Addname= "MySQL"Description= "ADO Driver for MySQL"invariant= "MySql.Data.MySqlClient"type= "MySql.Data.MySqlClient.MySqlClientFactory, mysql.data"/> </dbproviderfactories> </System.Data>
<EntityFramework> <!--SQL for default settings - <defaultconnectionfactorytype= "MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6"> <Parameters> <parametervalue= "v11.0" /> </Parameters> </defaultconnectionfactory> <providers> <providerInvariantName= "MySql.Data.MySqlClient"type= "MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" /> </providers> </EntityFramework>
Things to support: 1.mysql-for-visualstudio-1.1.4.msi:http://dev.mysql.com/downloads/file.php?id=451295
2.mysql-connector-net-6.8.3.msi:http://dev.mysql.com/downloads/file.php?id=450594