How to use EF Core (EF7) with Mysql server?

前端 未结 2 1368
一向
一向 2021-02-12 13:25

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.<

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-12 14:05

    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.

    UPDATE Sept 15, 2016

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

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

    There is also a community version of a MySQL provider

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

    UPDATE May 23, 2016

    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

    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

提交回复
热议问题