not found: 'Void CoreTypeMappingParameters..ctor

3k Views Asked by At

I updated my project from ef 6 to 7 and got this error

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>)'.
  Source=EntityFrameworkCore.SqlServer.HierarchyId
1

There are 1 best solutions below

0
Harry .Naeem On

Happened with me as well when i updated from .net5 to .net6, and updated my packages.

Uninstall 7.0 version of Microsoft.EntityFrameworkCore.Design and then

In NuGet package manager console, run

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