Hi @Misha Kurytsia, not sure if you found the answer, I was getting the same error with 9.0.3. I followed article https://github.com/dotnet/efcore/issues/35179 and switched back to 8.0.11 for EF and MySQL.EF packages and got past the error.
Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.AdHocMapper'
Misha Kurytsia
0
Reputation points
I'm using .NET 8.0, Entity FrameworkCore 9.0.2, MySql.EntityFrameworkCore 9.0.0 and when I try to get data from the database I get the following error.
How to resolve this problem?
System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.AdHocMapper' from assembly 'Microsoft.EntityFrameworkCore, Version=9.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Developer technologies .NET Entity Framework Core
780 questions
Developer technologies ASP.NET ASP.NET Core
4,815 questions
Developer technologies .NET Other
4,103 questions