Gcobani Mkontwana

Gcobani Mkontwana

  • 565
  • 1.9k
  • 407.2k

the term scaffold-dbcontext does not recognized

May 10 2020 12:24 PM
Hi Team
 
I have installed following packages, they appear to exist and have tried to run this command on NuGET console.
 
Install-Package Microsoft.EntityFrameworkCore.Tools
Install-Package Microsoft.EntityFrameworkCore.SqlServer
 
Scaffold-DBContext "Data Source=(LocalDb)\MSSQLLocalDB;
Catalog=eNtsaRegistration;
Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models.
I am getting an error,
 
The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet

Answers (5)