EF操作数据库的数据迁移
电脑版发表于:2019/10/25 16:00
Enable-Migrations启用数据库迁移。
Enable-Migrations –EnableAutomaticMigrations 启动自动迁移。
Update-Database 更新到数据库。
Add-Migration needname 手动迁移(防止一些数据库丢失的情况,类似做一个日志,方便自己查看)
The EntityFramework package is not installed on project 'WebApplication1'。未应用自动迁移,因为自动迁移会导致数据丢失。
PluralizingTableNameConvention