1、建立实体
二、DBcontext
3、 startup 添加服务
4、配置appsetting.json
5、数据迁移
生成migrations文件夹后执行update-database
6、回退
update-database "init" 则回退到"init "这个版本
.net core migration(学习笔记1)
原文:https://www.cnblogs.com/stonechina/p/12144490.html