Method not found: 'Void Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping..ctor(System.String, System.Type, System.Nullable`1<System.Data.DbType>, Boolean, System.Nullable`1<Int32>)' code example

Example: Method not found: 'Void Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping

MySql.Data.EntityFrameworkCore 8.0.22 is only compatible with Microsoft.EntityFrameworkCore 3.1.
Downgrade all Microsoft.EntityFramework packages from 5.0.0 to 3.1.10 to fix the error.

If you do want to use Microsoft.EntityFramework 5.0,
you can try switching to Pomelo.EntityFrameworkCore.MySql 5.0.0-alpha.2 (or later); see its table of compatible package versions.

Tags:

Misc Example