Giorgi / EntityFramework.Exceptions

Strongly typed exceptions for Entity Framework Core. Supports SQLServer, PostgreSQL, SQLite, Oracle and MySql.
https://giorgi.dev/entity-framework/introducing-entityframework-exceptions/
Other
1.44k stars 68 forks source link

Need to update MySQLConnector to 1.0.0 when using Net 5 and Pomelo #31

Closed Jake-Rich closed 3 years ago

Jake-Rich commented 3 years ago

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

Giorgi commented 3 years ago

Can you send PR?

Giorgi commented 3 years ago

Fixed in 9e0f2d6