实体框架用mysql数据库优先 [英] Entity Framework With mysql Database First

查看:107
本文介绍了实体框架用mysql数据库优先的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用c#开发一个新项目,我们希望使用实体框架6,但每次我们想要根据我们使用的数据库生成模型。但是当我使用向导生成ADO.Net模型时,在我选择数据库
和实体框架后,我点击"下一步"按钮。按钮,而是出现选择表格的窗口,窗口消失,没有任何类型的错误。

Hi there, i'm working in a new project with c# and we want to use entity framework 6 but everytime we want to generate the models based on the database we have in usage. But when i'm generating a ADO.Net model using the wizard, after i select the database and the entity framework i click on the "next" button and instead appear the window to select the tables , the windows disappear without any type of error.

我正在使用visual studio 2017社区版,我已经安装了mysql连接器v。 8.0.11。如果我将mysql连接器版本和实体框架降级到v5,一切都可以正常工作,但在我将连接器和实体框架
更新到版本6之后。*我得到了上面报告的问题。

I'm using visual studio 2017 community edition and i've installed the mysql connector v.8.0.11. If i downgrade the mysql connector version and entity framework to v5 everything works without any problem, but after i update the connector and entity framework to version 6.* i get the problem i've reported above.

推荐答案

您知道这是一个Microsoft论坛。 

You know that this is a Microsoft forum. 

MySQL是一个Oracle产品,因此它是最好在论坛中提问。 

MySQL is an Oracle product therefore it is better to ask it in their forums. 

https://forums.mysql。 com

https://forums.mysql.com


这篇关于实体框架用mysql数据库优先的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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