添加项目引用
加入
注意修改MigrationsAssembly为web项目名称空间
运行命令dotnet ef database update -c BsDbContext
BsDbContext为DbContext类名
其他命令参考:
https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet
原文:http://www.cnblogs.com/zhangning/p/6703194.html