When using the MySQL.Pomelo exception helpers I needed to update the MySQLConnector package to 1.0.0 or it would throw a TypeLoadException.
System.TypeLoadException: Could not load type 'MySql.Data.MySqlClient.MySqlException' from assembly 'MySqlConnector, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92'. at EntityFramework.Exceptions.MySQL.Pomelo.ExceptionProcessorExtensions.UseExceptionProcessor(DbContextOptionsBuilder self) at Hive.Web.API.Models.DatabaseContext.OnConfiguring(DbContextOptionsBuilder optionsBuilder) in C:\Users\weird\source\repos\Hive.Web.API\Hive.Web.API\Models\DatabaseContext.cs:line 41
Version: 3.1.2
Entity Framework Core 5.0.0
When using the MySQL.Pomelo exception helpers I needed to update the MySQLConnector package to 1.0.0 or it would throw a TypeLoadException.
System.TypeLoadException: Could not load type 'MySql.Data.MySqlClient.MySqlException' from assembly 'MySqlConnector, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92'. at EntityFramework.Exceptions.MySQL.Pomelo.ExceptionProcessorExtensions.UseExceptionProcessor(DbContextOptionsBuilder self) at Hive.Web.API.Models.DatabaseContext.OnConfiguring(DbContextOptionsBuilder optionsBuilder) in C:\Users\weird\source\repos\Hive.Web.API\Hive.Web.API\Models\DatabaseContext.cs:line 41