当前位置:网站首页>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
边栏推荐
猜你喜欢

flask 源码梗概

How to enter the specified user method body when debugging in idea?

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

Interceptors

Go+mysql+redis+vue3 simple chat room, the sixth bullet: use vue3 and element plus to call the interface

Detailed illustration of B-tree and its implementation in C language
![[HCIA security] bidirectional nat](/img/e3/ba0bada1235ac92e626ae2d972ad09.png)
[HCIA security] bidirectional nat

Flash source code outline

GOM login configuration free version generate graphic tutorial

Why does it system need observability?
随机推荐
【Oracle实训】-部署号称零停机迁移的OGG
conda报错:json.decoder.JSONDecodeError:
Using union to sort MySQL
Sprinboot interview questions
flask 源码梗概
微服务化解决文库下载业务问题实践
What kind of security problems will the server encounter?
Flutter性能优化实践 —— UI篇
2022-7-26 the seventh group of abstractions and interfaces
Introduction of JDBC
APaaS低代码平台(一) | 把复杂留给自己,把简单留给用户
Error in render: “TypeError: data.slice is not a function“
In addition to "adding machines", in fact, your micro service can be optimized like this
Pointpillars: fast encoders for object detection from point clouds reading notes
苹果官网罕见打折,iPhone13全系优惠600元;国际象棋机器人弄伤对弈儿童手指;国内Go语言爱好者发起新编程语言|极客头条
Difference between redis hash and string
GOM and GEE lander list file encryption tutorial
Redis面试题
Why does it system need observability?
Go+mysql+redis+vue3 simple chat room, bullet 5: synchronize messages to MySQL using message queues and scheduled tasks