Generating model from existing database in Asp.Net Core Application

Use NuGet search to Install the same version 8.0.4(exmple) of all the bellow 3 - 
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

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