我正在尝试从数据库生成类(EntityFramework的数据库第一种方法).
为方便起见,我或多或少地参与了本教程:https: //docs.efproject.net/en/latest/platforms/full-dotnet/existing-db.html
我正处于Visual Studio包管理器控制台中运行相当于这行代码的地步:
Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -Verbose
Run Code Online (Sandbox Code Playgroud)
这行代码生成错误(启用-Verbose模式):
Using startup project 'EFSandbox'.
Using project 'EntityFrameworkCore'
Build started...
Build failed.
Run Code Online (Sandbox Code Playgroud)
我没有看到任何产生任何有意义输出的选项,我看不到有关此特定错误的文档.如果它有帮助,那么这个项目目前没有project.json文件.一切都在.csproj文件中,我没有手动编辑.