实体框架+ MySQL类生成 [英] Entity Framework + MySQL class generating
问题描述
我尝试通过使用实体框架连接MySql数据库,但是Visual Studio不想生成* .edmx?
I try to connect MySql database by using Entity Framework but visual studio do not want to generate *.edmx?
我在db中有1个表,
-选择ado.net edm,
-选择从数据库生成
-选择db
-在这里我应该选择表格,但是向导关闭
I have 1 table in db,
-choose ado.net edm,
-select the Generate from Database
-choose db
-here I think I should select tables, but the wizard closes
我尝试使用不同版本的EF,但仍然无效.有什么问题吗?
I try to use different version of EF, but still nothing works. What is the problem?
我的软件:
-Windows 7 * 64
-vs 2017社区
-mySql 8.0社区
my software:
-Windows 7 *64
-vs 2017 community
-mySql 8.0 community
推荐答案
这是MySQL Connector/NET中的一个已知错误:
This is a known bug in MySQL Connector/NET:
- Bug 89338 for 6.10.5
- Bug 91195 for 8.10.11
您将需要等待Oracle修复此错误并发布更新.有人报告可以通过遵循这些方法来解决此问题.说明.
You will need to wait for Oracle to fix this bug and ship an update. Some people have reported being able to work around the problem by following these instructions.
另请参阅以下先前的SO问题:
See also these previous SO questions:
- Visual Studio Entity framework wizard crash on MySQL
- Entity Framework wizard crashes on MySQL
这篇关于实体框架+ MySQL类生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!