| Bug #116691 | Method 'get_LockReleaseBehavior' does not have an implementation | ||
|---|---|---|---|
| Submitted: | 18 Nov 2024 8:51 | Modified: | 18 Nov 2024 10:27 |
| Reporter: | Kevin Prior | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | Connector / NET | Severity: | S3 (Non-critical) |
| Version: | 9.0.0-preview | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | C#, dotnetcore, Entity Framework Core | ||
[18 Nov 2024 10:27]
MySQL Verification Team
Hi Mr. Prior, Thank you for your bug report. However , we are not able to repeat the behaviour that you are reporting ...... First of all, 9.0.0-preview is not a stable product. It is not supported any more. Hence, please go to our download site at https://dev.mysql.com and download and test C/NET 9.1.0. If you get the same error with that version, then please provide us with a full test case. It should include your code and all tables necessary to implement it . We also took a look at .NET 9 standard and there is not method of that name that is supported any more .... https://learn.microsoft.com/en-us/dotnet/ Can't repeat.

Description: When upgrading to dot net9.0 we run into an issue where we are not able to use the MySql EF core library to query MySQL. This exception is being thrown when the database context is being instantiated: System.TypeLoadException: 'Method 'get_LockReleaseBehavior' in type 'MySql.EntityFrameworkCore.Migrations.Internal.MySQLHistoryRepository' from assembly 'MySql.EntityFrameworkCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.' How to repeat: Create a dotnet 9 application that uses these package versions: <PackageVersion Include="MySql.Data" Version="9.1.0" /> <PackageVersion Include="MySql.EntityFrameworkCore" Version="9.0.0-preview" /> Create a database context that connects to MySQL and attempt to instantiate / use the database context.