当前位置:网站首页>In depth study of efcore migrations
In depth study of efcore migrations
2022-07-26 21:23:00 【Abacus】
1、 Use the migration script , You can perform a higher number migration on the currently connected database , This operation is called “ Move up (Up)”, You can also perform a migration that backs the database back to the old , This operation is called " Downward migration (Down)"
2、 Unless there's a special need , Otherwise, do not delete Migratons The code under the file
3、 Further analysis Migrations Under the code . analysis Up、Down Other methods . see Migration Number
4、 View the dbo._EFMigrationsHistory surface : Record the migration script that has been applied to the current database , In order
Migrations Other commands
1、Update-Database XXX
Rollback or upgrade the database to XXX The state of , The migration script does not move
2、Remove-migration
Delete the last migration script
3、Script-Migration
Generate migration SQL Code .
With Update-Database Why generate SQL Script
Version can be generated D To version F Of SQL Script :
Script-Migration D F
Generate version D To the latest version of SQL Script :Script-Migration D
边栏推荐
猜你喜欢

Flutter Performance Optimization Practice - UI chapter

详解西部数据SMR叠瓦式硬盘的190二级编译器(译码表)模块

idea中debug时如何进入指定的用户方法体中?

JVM学习----内存结构----程序计数器&虚拟机栈&本地方法栈&堆&方法区

Remember the idea of solving the problem of invalid bound statement xxxxx once

牛客刷题——Mysql系列

ECCV 2022 | complete four tracking tasks at the same time! Unicorn: towards the unification of target tracking
Monitor MySQL based on MySQL exporter

JDBC的连接

Explain the 190 secondary compiler (decoding table) module of SMR laminated hard disk of Western data in detail
随机推荐
Cfdiv1+2-pathwalks- (tree array + linear DP)
[ffmpeg] add timestamp summary to video files
Niuke brush questions - MySQL series
QT Foundation Day 1 (1) QT, GUI (graphical user interface) development
Summary of 4 years of software testing experience and interviews with more than 20 companies after job hopping
Set the template of core configuration file in idea
Test cases should never be used casually, recording the thinking caused by the exception of a test case
Serial port communication failure
08_ UE4 advanced_ Start end pause menu UI
In addition to "adding machines", in fact, your micro service can be optimized like this
今天公司碰到一个阿里p8,算是真正见识到了基础的天花板
JDBC connection
TableWidget
牛客刷题——Mysql系列
ROS2节点通信实现零拷贝
Ros2 method of obtaining current system time
手机\固定电话座机呼叫转移设置方法
APaaS低代码平台(一) | 把复杂留给自己,把简单留给用户
Detailed illustration of B-tree and its implementation in C language
4年软件测试工作经验,跳槽之后面试20余家公司的总结