Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 469.7k

dotnet ef dbcontext scaffold

May 11 2020 2:41 AM
Hi Team
  1. dotnet ef dbcontext scaffold "Server=GcobaniM-L\SQLEXPRESS;Database=eNtsaRegistration;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -o Models  
  2. dotnet : Could not execute because the specified command or file was not found.  
  3. At line:1 char:1  
  4. + dotnet ef dbcontext scaffold "Server=GcobaniM-L\SQLEXPRESS;Database=e ...  
  5. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  6.     + CategoryInfo          : NotSpecified: (Could not execu... was not found.:String) [], RemoteException  
  7.     + FullyQualifiedErrorId : NativeCommandError  
  8.    
  9. Possible reasons for this include:  
  10.   * You misspelled a built-in dotnet command.  
  11.   * You intended to execute a .NET Core program, but dotnet-ef does not exist.  
  12.   * You intended to r  
  13. un a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.  

I want to create models on my MVC web app, i somehow deleted them accidentically manually and now getting some errors.  Below is my special command to execute, i do have these following packages installed already;Install-Package Microsoft.EntityFrameworkCore.Tools Install-Package Microsoft.EntityFrameworkCore.SqlServer


Answers (1)