C# 尝试使用EF Core从现有数据库创建模型时出错
我想使用ASP.NET Core 3.1、Entity Framework Core 5和Oracle database 10g创建一个web应用程序 数据库已经创建,所以我需要从现有数据库创建模型 当我使用命令时,C# 尝试使用EF Core从现有数据库创建模型时出错,c#,asp.net,oracle,entity-framework,entity-framework-core,C#,Asp.net,Oracle,Entity Framework,Entity Framework Core,我想使用ASP.NET Core 3.1、Entity Framework Core 5和Oracle database 10g创建一个web应用程序 数据库已经创建,所以我需要从现有数据库创建模型 当我使用命令时,dotnet ef dbcontext scaffold“server=sv.local;port=1533;user=root;password=root;database=db”Oracle.EntityFrameworkCore-o Entities-f 我得到以下错误: Co
dotnet ef dbcontext scaffold“server=sv.local;port=1533;user=root;password=root;database=db”Oracle.EntityFrameworkCore-o Entities-f
我得到以下错误:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with thi s name could not be found on the PATH.
我已安装以下NuGet软件包:
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Tools
Oracle.EntityFrameworkCore
你能帮我从现有数据库创建模型吗
谢谢。您是否安装了此处提到的EF全局工具?:仅引用nuget软件包不会将其安装为全局工具hanks@ThomasSchmidt。我已经使用命令“dotnet tool install--global dotnet EF”安装了EF Core,现在我可以使用上面提到的命令了。但是,我遇到了另一个错误,我打开了另一个帖子: