在ASP.NET MVC中包含My SQL的实体框架 [英] Entity Framework with My SQL inside asp.net mvc

查看:76
本文介绍了在ASP.NET MVC中包含My SQL的实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个asp.net mvc Web应用程序,我有一个商业系统,我想连接到它的MySQL数据库。所以我决定在asp.net mvc Web应用程序中使用实体框架。

Iam developing an asp.net mvc web application, and I have a commercial system which i want to connect to its MySQL database. so i decide to use the entity framework inside an asp.net mvc web application.

但是当我厌倦创建新连接时,我找不到连接到MySQL服务器的选项,如下所示:-

but when i tired to create a new connection i can not find an option to connect to the MySQL server, as shown below:-

是否可以选择连接到MSQL服务器而不是SQL Server?

So is there an option to connect to MSQL server instead of SQL server?

推荐答案

安装。NET的MySQL连接器,重新启动Visual Studio,然后重试。

Install MySQL Connector for .NET, restart your Visual Studio and try again.

更新:

有时安装连接器不足以进行Visual Studio集成。请参见 https://stackoverflow.com/a/4257203

Sometimes installing the Connector is not enough for Visual Studio integration. see https://stackoverflow.com/a/4257203 for solution.

这篇关于在ASP.NET MVC中包含My SQL的实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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