如何在Mysql服务器上使用EF Core(EF7)? [英] How to use EF Core (EF7) with Mysql server?

查看:131
本文介绍了如何在Mysql服务器上使用EF Core(EF7)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在linux上开发asp.net 5(现在称为ASP.NET Core)。但是我无法在EF7(现在称为EF Core)和Mysql服务器之间连接。请告诉我您知道的所有解决方案。

I am developing asp.net 5 (now called ASP.NET Core) on linux. But I cannot connect between EF7 (now called EF Core) and Mysql server. Please tell me any solution that you knew.

谢谢。

推荐答案

https://docs.microsoft.com/上列出了所有可用的提供程序。 zh-cn / ef / core / providers / 。在撰写本文时,有3个不同的EF Core提供程序,两个社区版本和一个正式版本。

All available providers are listed at https://docs.microsoft.com/en-us/ef/core/providers/. At time of writing, there are 3 different EF Core providers, two community versions and one official version.

更新2016年9月15日

MySQL发布了EF Core官方提供程序的第一版。

MySQL released the first version of an official provider for EF Core.

https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore

还有一个MySQL提供程序的社区版本

There is also a community version of a MySQL provider

https://www.nuget.org/packages/Pomelo.EntityFrameworkCore.MySQL

UPDATE 2016年5月23日

MySQL已经(悄悄地)宣布他们正在构建EF Core 1.0提供程序。尚无关于其可用性的详细信息。参见 https://docs.efproject.net/en/latest/providers /mysql/index.html

MySQL has announced (quietly) that they are building an EF Core 1.0 provider. There are no details yet on its availability. See https://docs.efproject.net/en/latest/providers/mysql/index.html

DevArt还在一个月前宣布,其(专有,非免费的)提供程序仅在.NET Framework上支持EF 7。 ,包括其MySQL提供程序。关于他们打算支持.NET Core的消息尚无消息。 http://blog.devart.com/ entity-framework-core-1-entity-framework-7-support.html

Also, DevArt announced a month ago that their (proprietary, not-free) providers support EF 7 on .NET Framework only, including their MySQL provider. No news yet about their intention to support .NET Core. http://blog.devart.com/entity-framework-core-1-entity-framework-7-support.html

这篇关于如何在Mysql服务器上使用EF Core(EF7)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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