启用迁移在程序包管理器控制台中不起作用
Enable Migrations does not work in Package Manager Console
我在我的解决方案中安装了 EF:
PM> Install-Package EntityFramework -IncludePrerelease
之后,我尝试执行启用迁移命令,但它不起作用:
PM> enable-migrations
错误:
No context type was found in the assembly 'MyProjectName'.
从下拉菜单默认项目指定目标项目(DbContext
派生class),或者:
PM> enable-migrations -Project <MyProjectName>
试试这个命令可能会有帮助。
EntityFrameworkCore\enable-migrations
我在我的解决方案中安装了 EF:
PM> Install-Package EntityFramework -IncludePrerelease
之后,我尝试执行启用迁移命令,但它不起作用:
PM> enable-migrations
错误:
No context type was found in the assembly 'MyProjectName'.
从下拉菜单默认项目指定目标项目(DbContext
派生class),或者:
PM> enable-migrations -Project <MyProjectName>
试试这个命令可能会有帮助。
EntityFrameworkCore\enable-migrations