Microsoft.EntityFrameworkCore.Design
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.SqlServer
OR
Try ->
PM>
1) Install-Package Microsoft.EntityFrameworkCore.Design
2) Install-Package Microsoft.EntityFrameworkCore.Tools
3) Install-Package Microsoft.EntityFrameworkCore.SqlServer
Then
PM>
Scaffold-DbContext "Server=Server Name;Initial Catalog=DBname;Persist Security Info=False;
User ID=**;Password=*****;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=
True;Connection Timeout=30;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -force
User ID=**;Password=*****;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=
True;Connection Timeout=30;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -force
or
Scaffold-DbContext "Server=Server Name;Initial Catalog=DBname;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
___________________________________________________________________________________
___________________________________________________________________________________
If you done some changes in DB, then try to update the code by using the following;
PM>
Scaffold-DbContext "Server=Server Name;Database=DBname;User ID=**;Password=*****; Trusted_Connection=True;encrypt=false;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Force