实体框架+ MySQL类生成 [英] Entity Framework + MySQL class generating

查看:82
本文介绍了实体框架+ MySQL类生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过使用实体框架连接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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆