Your startup project 'UnitTestNet6' doesn't reference Microsoft.EntityFrameworkCore.Design.
执行这个命令
dotnet ef dbcontext scaffold "connection string" Microsoft.EntityFrameworkCore.SqlServer -o ./EntityFrameworkTest/Models -t dbo.Test
报错1
Your startup project 'UnitTestNet6' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.
需要安装Microsoft.EntityFrameworkCore.Tools
报错2
Unable to find provider assembly 'Microsoft.EntityFrameworkCore.SqlServer'. Ensure the name is correct and it's referenced by the project.
需要安装Microsoft.EntityFrameworkCore.SqlServer
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.5">
相关文章
- ftp连接服务器失败||或者Xshell链接错误:Could notconnect to '192.168.18.128' (port 22): Connection failed
- Expression #1 of ORDER BY clause is not in SELECT list, references column 'ekbX1.t0.name' which is not in SELECT list; this is incompatible with DISTINCT
- When using 'npm' it requires me to login to github
- Cross Site Scripting Prevention Cheat Sheet¶
- SQL type 'datetimeoffset' is not registered
- Unable to load DLL 'Microsoft.Data.SqlClient.SNI.x64.dll'
- HearthBuddy炉石兄弟 Method 'CollectionDeckBoxVisual.IsValid' not found.
- 【转】python setup.py install 报错:error:[WinError 3]系统找不到指定的路径: 'C:Program Files (x86)Microsoft Visual Studio 14.0VCPlatformSDKlib
- Vue-Socket.io跨域问题 has been blocked by CORS policy: No 'Access-Control-Allow-Origin' Mentalflow解决思路
- Field 'id' doesn't have a default value错误解决办法
- axios [æk'si:əʊs] 及 axios 请求配置
- jQuery报 SyntaxError: expected expression, got '<'错误
- 解决RHEL6 vncserver 启动 could not open default font 'fixed'错误.
- yocto编译时报错"fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead"如何处理?
- Don't Repeat Yourself (不要重复你自己)
- Unknown property 'mybatis-plus'
- Let's Encrypt 正式出發(免费HTTPS证书即将到来)
- 安装sql server时出现An error occurred during the installation of assembly 'microsoft.vc90.CRT'
- Android studio中出现Couldn't resolve resource @dimen/...
- var result = eval('(' + data + ')');的学习
- SQL Server 检测到基于一致性的逻辑 I/O 错误 pageid 不正确(应为 1:1772,但实际为 0:0)。在文件 'D:Program FilesMicrosoft SQL Ser
- 解决问题 “You don't have permission to access /index.html on this server.”
- 【vue踩坑记录】3、“Error in render: "TypeError: Cannot read property '0' of undefined"”渲染错误问题
- mysql命令 SHOW TABLE STATUS LIKE '%city%'; 查看表的状态可以查看表的创建时间
- mysql Column count doesn't match value count at row 1
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone