且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

迁移:程序集中未找到DbContext

更新时间:2023-11-17 18:13:46

在程序包管理器控制台中,选择定义DbContext的项目,然后运行命令add-migration initial. 例如:public class SomeContext : DbContext

In the Package Manager Console select the project where the DbContext is defined and run the command add-migration initial. For example:public class SomeContext : DbContext