Home > Blockchain >  Method not found: 'Void CoreTypeMappingParameters..ctor(System.Type, Microsoft.EntityFrameworkC
Method not found: 'Void CoreTypeMappingParameters..ctor(System.Type, Microsoft.EntityFrameworkC

Time:11-12

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>)'.

I am getting this error. Please help me to solve this.

How to solve my problem?

CodePudding user response:

I think this is the same problem that I was seeing, and the solution is described in this question:

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

In a nutshell, what worked was making sure all the entity framework packages were the same version (in my case 6.0.10). I had a 7.0.something version sneak into one project and that caused the error.

CodePudding user response:

Uninstall 7.0 version of Microsoft.EntityFrameworkCore.Design and then

In NuGet package manager console (PMC), run

PM> Install-Package Microsoft.EntityFrameworkCore.Design -Version 6.0.10

  • Related