更新时间: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