1. Install-Package EntityFramework 2. Enable-Migrations 3. update-Database -force 转载于:https://www.cnblogs.com/never-giveUp/p/4006123.html