Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while add migration to create database in Entity Framework 6, method not found CoreTypeMappingParameters

I'm trying to run add migration to create database on my local machine, in the last seconds I get this error:

Method not found: 'Void CoreTypeMappingParameters..ctor(System.Type, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, System.Func`3<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>)'.

Here is my Program.cs :

program.cs

I have no idea where to look, any suggestion?

like image 699
csharper Avatar asked Jan 21 '26 08:01

csharper


1 Answers

I found the solution for my problem based on the video in this article

click here

enter image description here

the solution is to make all the packages have the same version as Palemo.EntityFrameworkCore.MySql = 6.0.1 .

This made it work and create the migration for Mysql.

like image 151
Rose Riyadh Avatar answered Jan 23 '26 21:01

Rose Riyadh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!