使用命令通过代码生成数据库
先输入:Add-Migration MyFirstMigration(名字)
在输入:Update-Database
EF命令
原文:https://www.cnblogs.com/codeawaken/p/8837026.html