code first迁移命令
电脑版发表于:2020/6/9 16:45
Enable-Migrations启用数据库迁移
Enable-Migrations –EnableAutomaticMigrations 启动自动迁移
Update-Database 更新到数据库
Add-Migration needname 手动迁移(防止一些数据库丢失的情况,类似做一个日志,方便自己查看)
Enable-Migrations启用数据库迁移
Enable-Migrations –EnableAutomaticMigrations 启动自动迁移
Update-Database 更新到数据库
Add-Migration needname 手动迁移(防止一些数据库丢失的情况,类似做一个日志,方便自己查看)