</h1>
<div class="clear"></div>
<div class="postBody">
任务42:EF Core Migration
右边的是在VS2017中使用的命令,左边是在VSCode 的DOS窗体中使用的
最新版本的core 2.2.1的 版本创建以后已经没有model类了。
下面是视频中的操作:
给ApplicationUser增加了一个新的列:然后执行migratin的add命令
数据库中还没有更新
执行更新数据库的命令:
dotnet ef database update
数据库里面 新的列就出来了
数据库的回滚:
移除这个刚才 已经回滚到它的前一个内容了
生成sql脚本的命令:
如果您觉得阅读本文对您有帮助,请点一下“推荐”按钮,您的“推荐”将是我最大的写作动力!欢迎各位转载,但是未经作者本人同意,转载文章之后必须在文章页面明显位置给出作者和原文连接,否则保留追究法律责任的权利。
剑值offer:最小的k个数
剑指offer:第一个只出现一次的字符
剑指offer:树的子结构
leetcode 240搜索二维矩阵
leetcode 22括号生成
leetcode 79 单词搜索
leetcode 17电话号码的字母组合
leetcode 78子集
leetcode 105从前序与中序遍历序列构造二叉树