ASP.NET MVC4 Entity Framework and Mysql

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


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

你可能感兴趣的:(ASP.NET MVC4 Entity Framework and Mysql)