Efcore: Update Microsoft.EntityFramework5.0 error

Created on 18 Nov 2020  路  8Comments  路  Source: dotnet/efcore

image

roleback Microsoft.EntityFrameworkCore 3.1.9 is worked,i use mysql ,here is my packages
image

EF Core version:
Database provider: Microsoft.EntityFrameworkCore5.0
Target framework: NET 5.0
Operating system:Winodows10
IDE: (e.g. Visual Studio 2019 16.8.1)

closed-question customer-reported

Most helpful comment

See our main page under Getting Started: 3. Services Configuration.

In short, your call should look like this:

c# options.UseMySql( yourConnectionString, new MySqlServerVersion(new Version(8, 0, 18))

You can also take a look at any or all of the following:

All 8 comments

Are you using Pomelo.EntityFrameworkCore.MySql version 5.0.0-alpha*?
cc: @lauxjpn

Are you using Pomelo.EntityFrameworkCore.MySql version 5.0.0-alpha*?
cc: @lauxjpn

no锛宻hould i use this?

Can you share the csproj file of the project which is giving error? 3.2.4 of MySql provider does not work with EF Core 5.0

See PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#1088 for more details.

how should i use this ?it's something wrong ,options is null
image
image

Can you share the csproj file of the project which is giving error? 3.2.4 of MySql provider does not work with EF Core 5.0

now i use the Pomelo.EntityFramework.mysql 5.0.0-alpha.2,but something error,i don't know how to
initialize, just need connecttionString before

See our main page under Getting Started: 3. Services Configuration.

In short, your call should look like this:

c# options.UseMySql( yourConnectionString, new MySqlServerVersion(new Version(8, 0, 18))

You can also take a look at any or all of the following:

See our main page under Getting Started: 3. Services Configuration.

In short, your call should look like this:

options.UseMySql(
    yourConnectionString,
    new MySqlServerVersion(new Version(8, 0, 18))

You can also take a look at any or all of the following:

thanks,it getting worked

Was this page helpful?
0 / 5 - 0 ratings