1,安装Connector/Net
Connector/Net is a fully-managed ADO.NET driver for MySQL.
http://dev.mysql.com/downloads/connector/net/#downloads
2,web.config
<system.data> <DbProviderFactories> <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.3.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> </DbProviderFactories></system.data>
3,mySQL DataSource on Visual Studio 2012
http://stackoverflow.com/questions/12684047/mysql-datasource-on-visual-studio-2012
解决在ADO.NET DataSource没有Mysql的问题。
4,创建一个应用实例:Entity Framework
http://www.youtube.com/watch?v=WcfCinE53qA
5,DbProviderFactory
6,20个秘诀
http://www.cnblogs.com/o2ds/archive/2011/12/03/2274821.html
note:
some other issues reference
http://stackoverflow.com/questions/7354116/net-mysql-connector-conflicting-dbproviderfactories
http://stackoverflow.com/questions/4310316/shared-hosting-entity-framework-mysql-data-provider-errors