Core: MySql.Data.EntityFrameworkCore code is breaking in .NET 5.0

Created on 19 Nov 2020  Â·  22Comments  Â·  Source: dotnet/core

System.TypeLoadException: 'Method 'Create' in type 'MySql.Data.EntityFrameworkCore.Query.Internal.MySQLSqlTranslatingExpressionVisitorFactory' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.22.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.'

All 22 comments

Hello, I’m having the same issue, have you managed to resolve it?

@vilogp Not yet.

Same error here

Setting the version for Microsoft.EntityFrameworkCore and Microsoft.EntityFrameworkCore.Design to 3.1.10 and doing a rebuild, can be used as a work around. (For those that encountered this on first attempt in playing with .net like myself)

Same issue her tried installing Pomelo on v 5.0 no success.

Same issue, can't create an EF migration.

Same issue here. Are there plans to upgrade this package?

Same issue here.

Same issue.

any update on this?

For issues with Oracle‘s MySQL EF Provider the bug tracker is https://bugs.mysql.com (Connector/NET „type“)

The community alternative Pomelo.EntityFrameworkCore.MySql has an alpha version with 5.0 support out there which you could try in the meantime (shout out to the amazing effort they are putting in for free)

@a-patel I am facing this same issue. Have you tried Pomelo.EntityFrameworkCore.MySql? Or do you have any workaround?

@ShaonDey
I have not tried other options.

I have tried 5.0.0-alpha.2 version of Pomelo.EntityFrameworkCore.MySql and found working for me!

PS: This is just for test purpose. I will NOT be adding a Pre-release version on my _Production Codebase_.

any update on this?

any update on this?

Temporarily, I am using Pomelo.EntityFrameworkCore.MySql alpha. It is working.

Hello @a-patel , I cannot install the Pomelo.EntityFrameworkCore.MySql package because it is version 3.2.4, what can I do?

@vmutlu Please check the "Include Prerelease" checkbox.

ok @a-patel, very thank you

Use the following instead

<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.0-alpha.2" />

For more info visit https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql and follow the required steps and you should be fine

Was this page helpful?
0 / 5 - 0 ratings