'System.MissingMethodException' occurred in System.Private.CoreLib.ni

.net .net-core c# entity-framework entity-framework-core

Question

I am working on a project (Visual Studio 2015 update 3) where I am using Entity framework core with MySQL. I am able to write to data to my database, but when trying to query data using DbSet<T>.Find(...) or FirstOrDefault I get this exception:

An exception of type 'System.MissingMethodException' occurred in System.Private.CoreLib.ni.dll but was not handled in user code

Additional information: Method not found: 'Void Microsoft.EntityFrameworkCore.Query.QueryContextFactory..ctor(Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager, Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IChangeDetector)'

I tried to update all the packages from NuGet packages manager, with no success. This question may apear like semi duplicate, but it is NOT, no solution worked for me. Any ideas? Thanks in advance!

1
0
2/26/2017 5:18:08 PM

Popular Answer

OK it seems to be a bug in MySQL -> entity framework adapter MySql.Data.EntityFrameworkCore. I downgraded from 7.0.6-IR31 to 6.10.1-beta and everything works fine now!

1
2/26/2017 7:07:07 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow