question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore' does not have an implementation

See original GitHub issue

I have upgraded the SDK and runtime to 3.0, upgraded the packages in .csproj but bump into the exception:

System.TypeLoadException: Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.17.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.

Notice the spelling error in the namespace, Infraestructure instead of Infrastructure. Could that be the root cause?

Steps to reproduce

$ dn --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  19.04
 OS Platform: Linux
 RID:         ubuntu.19.04-x64
 Base Path:   /usr/share/dotnet-3.0.100/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  3.0.100 [/usr/share/dotnet-3.0.100/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet-3.0.100/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet-3.0.100/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Further technical details

EF Core version: 3.0 Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer) MySql.Data.EntityFrameworkCore Target framework: .NET Core 3.0 Operating system: Ubuntu 19.04 IDE: Visual Studio Code 1.38.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

28reactions
j0nimostcommented, Dec 4, 2019

THIS SUCKS!!!

8reactions
rojicommented, Jan 15, 2020

@yasuoyuhao and others, just to clarify the current situation… There are two MySQL providers for Entity Framework Core:

  • The official one from MySQL: MySql.Data.EntityFrameworkCore. As of now, the latest version is 8.0.19, and works with Entity Framework Core 2.1 (and probably also 2.2). Since EF Core 3.0 is a major version with breaking changes, you cannot use it with this provider.
  • The Pomelo provider: Pomelo.EntityFrameworkCore.MySql. There is a 3.1 version of this provider.

In other words, if you want to use EF Core 3.0/3.1 with MySQL, at this point you need to use the Pomelo provider (or wait for the official MySQL one to get released).

Note that neither of these are provided by the EF team or tracked by this repo - any bugs or feature requests must be filed directly with its respective project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MySql EntityFrameworkCore System.TypeLoadException
TypeLoadException : 'Method 'Clone' in type 'MySQL.Data.EntityFrameworkCore.Infraestructure.Internal.MySQLOptionsExtension' from assembly 'MySql ...
Read more >
97298: Method 'get_Info' missing from MySql.Data. ...
TypeLoadException: Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.
Read more >
Problems about upgrade .net5 to .net6 RC
I have a site only for the reading database from MySQL. Now I am about to upgrade it from .net 5 to .net6...
Read more >
ASP.NET core 3.1中Method 'get_Info' in type 'MySql.Data ...
笔者在项目中迁移数据库时出现Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.
Read more >
Method 'Create' in type 'MySql.Data.EntityFrameworkCore. ...
I'm trying to add a new user to the database with the following code: public async void SeedUsers(){ int count=0; if(count>0){ return; }...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found