小编Mar*_*rez的帖子

EF Core 迁移错误:“无法创建‘ApplicationContext’类型的对象”

我正在尝试使用 EF Core 进行迁移,但出现错误 - 如何修复此错误?

PM> add-migration ini
Run Code Online (Sandbox Code Playgroud)

无法创建类型为“ApplicationContext”的对象。将“IDesignTimeDbContextFactory”的实现添加到项目中,或参阅 https://go.microsoft.com/fwlink/?linkid=851728 了解设计时支持的其他模式。

entity-framework-core asp.net-core

11
推荐指数
2
解决办法
2万
查看次数