Method not found: 'Void EntityFrameworkCore.Design.Internal.DbContextOperations

asp.net-core-mvc entity-framework-core

Question

I am trying to scaffold and getting following error:

There was an error running the selected code generator Method not found: 'Void EntityFrameworkCore.Design.Internal.DbContextOperations

1
3
6/1/2018 8:50:20 PM

Accepted Answer

https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db?view=aspnetcore-2.0#install-entity-framework

I suspect you are missing the assemblies that are necessary for scaffolding? I also assume you are trying to reverse engineer an existing db?

example Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

if it fails like i can't find it might be a pmc issue, try closing down VS try again. After that its probably a configuration with missing assemblies.

3
6/1/2018 8:48:30 PM

Popular Answer

It may be the Microsoft.EntityFrameworkCore.Design version issue. Uust update it to version 2.0.3. It worked for me.



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