我是.NET平台的新手.有几次我遇到Visual Studio的问题,我决定使用Rider.它再次鼓励我(我已经使用Jetbrains产品2年了).但我找不到nuGet控制台(在visual studio中也是如此).
自 Rider 2018.1 起可用。
有关安装的信息请参阅 JetBrains 的博客文章:https://blog.jetbrains.com/dotnet/2018/04/06/entity-framework-support-rider-2018-1/
PS 在 Rider 2020.2.1 上测试。
尽管 Rider 现在添加了用于迁移的 UI,但不幸的是,如果您使用最新的 dotnet 功能,则 UI 将无法工作。
例如,我创建的项目没有 Startup 类文件,UI 不会让我继续:
但我尝试了这些有效的命令:
dotnet tool install --global dotnet-ef
# You can type the DbContext manually now!
dotnet ef migrations add 'initial' --project src/IdentityServer/IdentityServer.csproj --context PersistedGrantDbContext
Run Code Online (Sandbox Code Playgroud)
然后我执行:
dotnet ef database update --project src/IdentityServer/IdentityServer.csproj --context ConfigurationDbContext
Run Code Online (Sandbox Code Playgroud)
xtm*_*tmq -4
您可以使用终端工具窗口。或者 NuGet 管理器 (GUI)...
| 归档时间: |
|
| 查看次数: |
3250 次 |
| 最近记录: |