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

后端 未结 4 1146
时光取名叫无心
时光取名叫无心 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:08

    The MySQL Connector 6.6.5 only supports Entity Framework 4.3 as mentioned here. I have personally used it which worked well so far. However, if you require Entity Framework 5 specifically, you would need to use MySQL Connector 6.6.7 Beta which now supports it as mentioned here. I haven't tried v 6.6.7 though.

    Update 1: You can find the blog post of using EF 4.3 code-first with MySQL Connector 6.6 here.

    Update 2: Sample .NET 4.5 console application using EF 4.3 and MySql Connector 6.6.5 here.

提交回复
热议问题