Page 1 of 1

[EF Core 6] Method not found: 'Int64 RelationalExtensionInfo.GetServiceProviderHashCode()'.

Posted: Thu 28 Oct 2021 08:34
by Adaś
Hi,

after upgrading to .NET 6 im getting this error:

Code: Select all

An exception of type 'System.MissingMethodException' occurred in Microsoft.EntityFrameworkCore.dll but was not handled in user code
Method not found: 'Int64 RelationalExtensionInfo.GetServiceProviderHashCode()'.
on constructor:

Code: Select all

{
    public partial class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, int>
    {
        public ApplicationDbContext(DbContextOptions options) : base(options)
        {
        }
    }

i know that EF Core 6 is not yet officialy supported, but maybe do you have any idea how to fix this error?
More info: https://github.com/dotnet/efcore/issues/26022

Re: [EF Core 6] Method not found: 'Int64 RelationalExtensionInfo.GetServiceProviderHashCode()'.

Posted: Thu 28 Oct 2021 12:28
by Shalex
We have decided not to implement support of pre-release versions of EF Core 6. After EF Core 6 is released, we will do our best to support the feature as soon as possible. We will notify you when the EF Core 6 functionality is available in dotConnect for MySQL.

Re: [EF Core 6] Method not found: 'Int64 RelationalExtensionInfo.GetServiceProviderHashCode()'.

Posted: Thu 28 Oct 2021 15:53
by Adaś
No problem. We moved to pomelo which fully support EF 6 RC.2

Re: [EF Core 6] Method not found: 'Int64 RelationalExtensionInfo.GetServiceProviderHashCode()'.

Posted: Wed 01 Dec 2021 14:33
by Shalex
Entity Framework Core 6.0.0 is supported. We will notify you when a new public build of dotConnect for MySQL is available for download.

Re: [EF Core 6] Method not found: 'Int64 RelationalExtensionInfo.GetServiceProviderHashCode()'.

Posted: Tue 21 Dec 2021 18:05
by Shalex
dotConnect for MySQL 8.20 is released: viewtopic.php?f=2&t=51638.