Showing posts with label EFCore. Show all posts
Showing posts with label EFCore. Show all posts

EF - The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet

when you try to generate the EF context for SQL database using the "Scaffold-Context" command in EFCore. But you're getting the following error :
Scaffold-DbContext : The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or 
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try 
again.



Solution:

Just install the following "Microsoft.EntityFrameworkCore.Tools" from Nuget by using the following command

Install-Package Microsoft.EntityFrameworkCore.Tools


or right click on the project and select "Manage Nuget Packages" and type in search "Microsoft.EntityFrameworkCore.Tools" select Microsoft.EntityFrameworkCore.Tools like the below image and install.



Featured Post

Convert Json to Classes

Followers