TeachingNote

code first迁移命令

电脑版发表于:2020/6/9 16:45


Enable-Migrations启用数据库迁移

Enable-Migrations –EnableAutomaticMigrations 启动自动迁移


Update-Database 更新到数据库


Add-Migration needname 手动迁移(防止一些数据库丢失的情况,类似做一个日志,方便自己查看)


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢