Entity Framework 5.0 code-first with MySQL Connector 6.6.5.0 on .Net 4.5

后端 未结 4 1256
时光取名叫无心
时光取名叫无心 2021-02-09 08:26

For the life of me, I can\'t get my C# WinApp to work with Entity Framework 5.0 with a MySql database using MySql connector 6.6.5.0 (MySql.Data reference) and MySql

4条回答
  •  滥情空心
    2021-02-09 09:03

    I ran into the same problem in my first day of using mysql in EF. And I found your config is incorrect, and it should be

      
    
    
    

    And make sure you use .net framework 4.5 and mysql connector lib for .net 4.5 as well for EF 5, since the connector for .net 4 supports only EF 4.4.

提交回复
热议问题